forked from Yara724/api
Fixed damagedParts unified structure and resend problems
This commit is contained in:
@@ -22,7 +22,7 @@ export class UserAuthController {
|
||||
@Post("/send-otp")
|
||||
@ApiBody({
|
||||
type: UserLoginDto,
|
||||
description: "user login api -- call this api and send otp",
|
||||
description: "Users can ask for OTP via this API and receive it",
|
||||
})
|
||||
@ApiAcceptedResponse()
|
||||
async sendOtpRq(@Body() body: UserLoginDto) {
|
||||
@@ -40,7 +40,8 @@ export class UserAuthController {
|
||||
@UseGuards(LocalUserAuthGuard)
|
||||
@ApiBody({
|
||||
type: UserVerifyOtp,
|
||||
description: "user verify otp -- call this api and get a tokens",
|
||||
description:
|
||||
"Users can send their credentials and get their access token to server",
|
||||
})
|
||||
@ApiAcceptedResponse()
|
||||
async login(@Body() body, @Req() req, @CurrentUser() user) {
|
||||
|
||||
Reference in New Issue
Block a user