UNPKG

@puq/middleware

Version:

Interceptors, middlewares, and pipes

8 lines (7 loc) 387 B
import { DocumentBuilder as e, SwaggerModule as t } from '@nestjs/swagger'; import { notEmptyOrThrow as r } from '@puq/is'; export function configureSwagger(i) { let { app: o, description: s, name: n, path: u } = i; r(n), r(u), t.setup(u, o, t.createDocument(o, new e().addBearerAuth().setTitle(n).setDescription(s).build(), {})); } //# sourceMappingURL=configure-swagger.js.map