mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-23 11:37:02 -04:00
20 lines
662 B
TypeScript
20 lines
662 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
import { applyDecorators } from '@nestjs/common';
|
|
import {
|
|
ApiForbiddenResponse,
|
|
ApiNotFoundResponse,
|
|
ApiUnauthorizedResponse,
|
|
} from '@nestjs/swagger';
|
|
import { forbiddenDescription, notFoundDescription } from './descriptions';
|
|
|
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
export const FullApi = applyDecorators(
|
|
ApiForbiddenResponse({ description: forbiddenDescription }),
|
|
ApiNotFoundResponse({ description: notFoundDescription }),
|
|
ApiUnauthorizedResponse({ description: forbiddenDescription }),
|
|
);
|