Skip to content

Conversation

@taejun-J
Copy link
Collaborator

기존코드가 너무 지저분하여 이번주차 미션부분 새로 만들어서 작업

@taejun-J taejun-J self-assigned this Nov 28, 2024
@taejun-J taejun-J added the ✨ feature New feature or request label Nov 28, 2024
Copy link
Collaborator

@plar8271 plar8271 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다

Copy link
Collaborator

@swoo0514 swoo0514 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

전체적으로 잘 작성하신 것 같습니다! callback_uri가 하드코딩되어있던데 이 부분만 환경변수를 사용하는 방식으로 바꾸면 더 좋을 것 같아요 :)

import { StatusCodes } from 'http-status-codes';

export const handleUpdateUser = async (req, res, next) => {
const userId = req.params.userId; // userId 추출
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

userId와 같은 개인정보는 params보다는 body로 넣어서 보내주는 것이 안전해요!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants