mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 01:35:18 -04:00
Docs: Add api tags to group controller
For a better structure of the autogenerated apidoc website tags are used. Each Controller get it's own tag and will be put in a separate section. See https://docs.nestjs.com/openapi/operations#tags Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
24ccb1fcd0
commit
88ed1ec8ba
5 changed files with 10 additions and 4 deletions
|
@ -28,9 +28,10 @@ import { ConsoleLoggerService } from '../../../logger/console-logger.service';
|
|||
import { MediaService } from '../../../media/media.service';
|
||||
import { MulterFile } from '../../../media/multer-file.interface';
|
||||
import { TokenAuthGuard } from '../../../auth/token-auth.guard';
|
||||
import { ApiSecurity } from '@nestjs/swagger';
|
||||
import { ApiSecurity, ApiTags } from '@nestjs/swagger';
|
||||
import { MediaUploadUrlDto } from '../../../media/media-upload-url.dto';
|
||||
|
||||
@ApiTags('media')
|
||||
@ApiSecurity('token')
|
||||
@Controller('media')
|
||||
export class MediaController {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue