super admin guard
This commit is contained in:
@@ -18,11 +18,10 @@ export class AuthController {
|
||||
}
|
||||
|
||||
|
||||
// @UseGuards(SuperAdminAuthGuard)
|
||||
@UseGuards(SuperAdminAuthGuard)
|
||||
@Post('super-admin/auth/direct-login')
|
||||
@ApiOperation({ summary: 'Direct login for DSC - returns login credentials' })
|
||||
@ApiBody({ type: DirectLoginDto, description: 'Danak Subscriptionid' })
|
||||
// @ApiHeader({name:'Authorization'})
|
||||
directloginForDsc(@Body() dto: DirectLoginDto) {
|
||||
return this.authService.directLogin(dto.subscriptionId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user