mirror of
https://github.com/dadosfera/maestro.git
synced 2026-09-27 22:14:47 +00:00
FIX: add authentication to swagger
This commit is contained in:
@@ -9,7 +9,7 @@ import {
|
||||
UseFilters,
|
||||
Get,
|
||||
} from '@nestjs/common';
|
||||
import { ApiTags } from '@nestjs/swagger';
|
||||
import { ApiSecurity, ApiTags } from '@nestjs/swagger';
|
||||
import {
|
||||
AuthChangePasswordRequest,
|
||||
AuthResetPasswordRequest,
|
||||
@@ -203,6 +203,7 @@ export class AuthController {
|
||||
}
|
||||
|
||||
@Authenticated()
|
||||
@ApiSecurity('access-token')
|
||||
@Get('verify-access-token')
|
||||
@HttpCode(HttpStatus.OK)
|
||||
verifyAccessToken() {
|
||||
|
||||
Reference in New Issue
Block a user