-
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
Fix/login api #19
Fix/login api #19
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.
실행해볼 생각에 벌써 신나요
@@ -100,38 +100,36 @@ const postSignupController = async (req: Request, res: Response) => { | |||
|
|||
const postLoginController = async (req: Request, res: Response) => { | |||
try { | |||
const { email, password } = req.body; | |||
const data = await authService.postLoginService(email, password); | |||
const resData = await authService.postLoginService(req.body); |
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.
req.body를 받을때 타입선언 하겠습니다
@@ -97,22 +97,22 @@ const postSignupService = async ({ email, nickname, password }) => { | |||
* @access public | |||
*/ | |||
|
|||
const postLoginService = async (email: string, password: string) => { | |||
const postLoginService = async ({ email, password }) => { |
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.
req.body를 받을때 타입선언 하겠습니다
✅ PR check list
🌈 PR 요약
📌 변경 사항
Linked Issue
close #17