UNPKG

nestjs-api-tools

Version:

Wrappers for convenient API development including validation, logging and i18n wrappers

11 lines (9 loc) 395 B
import {ApiErrorResponse} from '../../interfaces'; import {ApiNotFoundResponse} from '@nestjs/swagger'; /** * 404 response decorator for Swagger autogenerated documentation. */ export const NotFoundApiResponse = (description = 'Запрашиваемый ресурс не найден'): MethodDecorator & ClassDecorator => ApiNotFoundResponse({ description, type: ApiErrorResponse, });