Skip to content

Commit e5dcee8

Browse files
committed
fix: auth controller
1 parent 5f69114 commit e5dcee8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/controllers/Auth/controller.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import AuthService from './service'
88
routes.post(
99
'/auth/sign-up',
1010
asyncHandler(async function signUp(req: Request, res: Response) {
11-
const { message, data } = await AuthService.signUp(req)
11+
const formData = req.getBody()
12+
const { message, data } = await AuthService.signUp(formData)
1213

1314
return res.status(201).json({ message, data })
1415
})

0 commit comments

Comments
 (0)