UNPKG

@nestjs/swagger

Version:

OpenAPI for NestJS: generate the API document from controllers and decorators, serve Swagger UI, and derive request types with mapped types.

8 lines (7 loc) • 247 B
import { DECORATORS } from '../constants.js'; import { createMethodDecorator } from './helpers.js'; export function ApiExcludeEndpoint(disable = true) { return createMethodDecorator(DECORATORS.API_EXCLUDE_ENDPOINT, { disable }); }