bsiness
This commit is contained in:
@@ -22,7 +22,7 @@ export class AuthController {
|
||||
// return this.authService.requestOtp(dto, false);
|
||||
// }
|
||||
|
||||
|
||||
|
||||
// @RefreshTokenRateLimit()
|
||||
// @ApiOperation({ summary: 'refresh the user access token / refresh token' })
|
||||
// @Post('public/auth/refresh')
|
||||
@@ -54,12 +54,12 @@ export class AuthController {
|
||||
|
||||
// //super admin routes
|
||||
|
||||
// @UseGuards(SuperAdminAuthGuard)
|
||||
// @Post('super-admin/auth/direct-login')
|
||||
// @ApiOperation({ summary: 'Direct login for DSC - returns login credentials' })
|
||||
// @ApiBody({ type: DirectLoginDto, description: 'Phone number and restaurant slug for direct login' })
|
||||
// directloginForDsc(@Body() dto: DirectLoginDto) {
|
||||
// return this.authService.loginAdminForDsc(dto.phone, dto.slug);
|
||||
// }
|
||||
@UseGuards(SuperAdminAuthGuard)
|
||||
@Post('super-admin/auth/direct-login')
|
||||
@ApiOperation({ summary: 'Direct login for DSC - returns login credentials' })
|
||||
@ApiBody({ type: DirectLoginDto, description: 'Danak Subscriptionid' })
|
||||
directloginForDsc(@Body() dto: DirectLoginDto) {
|
||||
return this.authService.directLogin(dto.subscriptionId);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user