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) • 244 B
import { DECORATORS } from '../constants.js'; export function ApiExcludeController(disable = true) { return (target) => { Reflect.defineMetadata(DECORATORS.API_EXCLUDE_CONTROLLER, [disable], target); return target; }; }