docs(api): Add missing tags

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2022-01-16 21:40:48 +01:00
parent df9fa39b99
commit 64667d81c0
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
6 changed files with 12 additions and 0 deletions

View file

@ -16,6 +16,7 @@ import {
UnauthorizedException,
UseGuards,
} from '@nestjs/common';
import { ApiTags } from '@nestjs/swagger';
import {
AlreadyInDBError,
@ -36,6 +37,7 @@ import { UsersService } from '../../../users/users.service';
import { RequestUser } from '../../utils/request-user.decorator';
@UseGuards(SessionGuard)
@ApiTags('alias')
@Controller('alias')
export class AliasController {
constructor(

View file

@ -15,6 +15,7 @@ import {
UnauthorizedException,
UseGuards,
} from '@nestjs/common';
import { ApiTags } from '@nestjs/swagger';
import { Session } from 'express-session';
import {
@ -35,6 +36,7 @@ import { LoginEnabledGuard } from '../../utils/login-enabled.guard';
import { RegistrationEnabledGuard } from '../../utils/registration-enabled.guard';
import { RequestUser } from '../../utils/request-user.decorator';
@ApiTags('auth')
@Controller('auth')
export class AuthController {
constructor(

View file

@ -4,11 +4,13 @@
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { Controller, Get } from '@nestjs/common';
import { ApiTags } from '@nestjs/swagger';
import { FrontendConfigDto } from '../../../frontend-config/frontend-config.dto';
import { FrontendConfigService } from '../../../frontend-config/frontend-config.service';
import { ConsoleLoggerService } from '../../../logger/console-logger.service';
@ApiTags('config')
@Controller('config')
export class ConfigController {
constructor(

View file

@ -12,6 +12,7 @@ import {
Post,
UseGuards,
} from '@nestjs/common';
import { ApiTags } from '@nestjs/swagger';
import { SessionGuard } from '../../../identity/session.guard';
import { ConsoleLoggerService } from '../../../logger/console-logger.service';
@ -23,6 +24,7 @@ import { UsersService } from '../../../users/users.service';
import { RequestUser } from '../../utils/request-user.decorator';
@UseGuards(SessionGuard)
@ApiTags('me')
@Controller('me')
export class MeController {
constructor(

View file

@ -26,6 +26,7 @@ import {
ApiForbiddenResponse,
ApiHeader,
ApiNoContentResponse,
ApiTags,
ApiUnauthorizedResponse,
} from '@nestjs/swagger';
@ -52,6 +53,7 @@ import { FullApi } from '../../utils/fullapi-decorator';
import { RequestUser } from '../../utils/request-user.decorator';
@UseGuards(SessionGuard)
@ApiTags('media')
@Controller('media')
export class MediaController {
constructor(

View file

@ -16,6 +16,7 @@ import {
UseGuards,
UseInterceptors,
} from '@nestjs/common';
import { ApiTags } from '@nestjs/swagger';
import {
AlreadyInDBError,
@ -45,6 +46,7 @@ import { RequestNote } from '../../utils/request-note.decorator';
import { RequestUser } from '../../utils/request-user.decorator';
@UseGuards(SessionGuard)
@ApiTags('notes')
@Controller('notes')
export class NotesController {
constructor(