add : reseller
This commit is contained in:
@@ -34,11 +34,11 @@ export class AuthController {
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation({ summary: "request to login with otp" })
|
||||
@ApiOperation({ summary: "request to login with otp as reseller" })
|
||||
@HttpCode(HttpStatus.OK)
|
||||
@Post("otp/send/reseller")
|
||||
sendOtpReseller(@Body() requestOtpDto: RequestOtpDto) {
|
||||
return this.authService.requestLoginOtpAgentAndReseller(requestOtpDto);
|
||||
return this.authService.requestLoginOtpReseller(requestOtpDto);
|
||||
}
|
||||
|
||||
@ApiOperation({ summary: "verify otp for login" })
|
||||
@@ -79,9 +79,9 @@ export class AuthController {
|
||||
|
||||
@ApiOperation({ summary: "verify otp for login" })
|
||||
@HttpCode(HttpStatus.OK)
|
||||
@Post("otp/verify/agent")
|
||||
@Post("otp/verify/reseller")
|
||||
resellerVerifyOtp(@Body() verifyOtpDto: VerifyOtpDto) {
|
||||
return this.authService.requestLoginOtpAgentAndReseller(verifyOtpDto);
|
||||
return this.authService.resellerVerifyLoginOtp(verifyOtpDto);
|
||||
}
|
||||
|
||||
@AuthGuards()
|
||||
|
||||
Reference in New Issue
Block a user