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.

6 lines (5 loc) • 147 B
export function stripLastSlash(path) { return path && path[path.length - 1] === '/' ? path.slice(0, path.length - 1) : path; }