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.

5 lines (4 loc) • 160 B
export function getGlobalPrefix(app) { const internalConfigRef = app.config; return (internalConfigRef && internalConfigRef.getGlobalPrefix()) || ''; }