mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-15 23:54:42 -04:00
openapi: adds auth to all public api routes
See: https://docs.nestjs.com/openapi/security Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
2ab950c5c3
commit
33d9c455b8
5 changed files with 12 additions and 0 deletions
|
@ -25,7 +25,9 @@ import { NotesService } from '../../../notes/notes.service';
|
|||
import { UserInfoDto } from '../../../users/user-info.dto';
|
||||
import { UsersService } from '../../../users/users.service';
|
||||
import { TokenAuthGuard } from '../../../auth/token-auth.guard';
|
||||
import { ApiSecurity } from '@nestjs/swagger';
|
||||
|
||||
@ApiSecurity('token')
|
||||
@Controller('me')
|
||||
export class MeController {
|
||||
constructor(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue