Skip to content

7주차 미션 [레인]#21

Open
geumbiii wants to merge 1 commit into
mainfrom
rain/week7
Open

7주차 미션 [레인]#21
geumbiii wants to merge 1 commit into
mainfrom
rain/week7

Conversation

@geumbiii
Copy link
Copy Markdown
Collaborator

7주차 미션

  • 성공 응답의 경우 표준 규격으로 잘 응답이 생성되는지 확인하고 수정
  • 오류 처리에 대해 점검하고, 오류가 발생할 수 있는 부분들은 커스텀 Error 객체를 선언해 던지도록 리팩토링
  • npm install 하고 app.use() 로 적용

코드 첨부 완료

condition,
rewardPoint,
});
res.status(201).json(success(result));
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

.json() 직접 호출 대신 Promise<ApiResponse<...>> 반환 방식으로 통일하면 좋을 것 같습니다!

Copy link
Copy Markdown
Collaborator

@ywkim1m ywkim1m left a comment

Choose a reason for hiding this comment

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

타 컨트롤러도 mission 컨트롤러와 같이 응답 방식을 통일하면 좋을 것 같습니다!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants