UNPKG

swagger-express-typescript

Version:
1 lines 727 B
{"version":3,"sources":["../../lib/swagger-express-typescript-lib/src/api-path.decorator.ts"],"names":[],"mappings":";;;AAAA,qDAAmD;AAQnD,SAAgB,OAAO,CAAC,IAAkB;IACtC,OAAO,UAAC,MAAW;QACf,gCAAc,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACvD,CAAC,CAAC;AACN,CAAC;AAJD,0BAIC","file":"api-path.decorator.js","sourcesContent":["import { SwaggerService } from './swagger.service';\nexport interface IApiPathArgs {\n path: string;\n name: string;\n description?: string;\n security?: { [key: string]: any[] };\n deprecated?: boolean;\n}\nexport function ApiPath(args: IApiPathArgs): ClassDecorator {\n return (target: any) => {\n SwaggerService.getInstance().addPath(args, target);\n };\n}\n"]}