This commit is contained in:
2026-03-10 11:16:16 +03:30
parent 4104bab0c6
commit cb4c8e1901
7 changed files with 47 additions and 39 deletions
@@ -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);
}
}