-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[develop → main] feat: social sign in, token authentication, trainer list, member management, community postlist, membership payment, consultant post #26
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아래 간단한 내용들 한 번 수정해주세요!
const getManagement = catchAsync(async (req, res) => { | ||
const { userId, weekday } = req.query; | ||
const membership = await managementService.getManagement(userId, weekday); | ||
res.json(membership); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 해당 membership에 대한 리턴에는 상태코드가 적혀있지 않네요! 상태코드를 함께 꼭 리턴시 함께 줄 수 있도록 수정하여주세요!
userRouter.post('/kakao-sign-in', userController.kakaoSignIn); | ||
userRouter.post('/kakao-sign-up', userController.kakaoSignUp); | ||
userRouter.post('/duplicate-nickname', userController.checkDuplicateNickname); | ||
userRouter.get('/mypage', loginRequired, userController.getMyPage); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- RESTful 한 엔드포인트 설계와, 레이어드 패턴 설계 시 mypage와 같은 페이지적 특성을 드러내는 요소로 작성하지 않습니다.
- 즉 유저의 정보를 드러내는 내용이라면 뒤 데이터 자원을 명시하는 영역의 문구가 users/information 정도로 처리될 수 있게 수정해주세요.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 해당 내용에 맞게 전체 레이어드패턴에 녹여져있는 myPage라는 워딩을 일괄 수정하여주세요!
[GypPT] List of feature implementations to date (230917)