UNPKG

koas-swagger-ui

Version:

Koas Swagger UI serves Swagger UI. This requires the `specURL` variable to have been set on the `ctx.openApi` object. Typically this is done by combining it with [`koas-spec-handler`][].

9 lines (8 loc) 240 B
/** * Resolve a file relative to a URL path root. * * @param root - The URL root. * @param file - The file to resolve * @returns The resolve URL path */ export declare function relativeRequestPath(root: string, file: string): string;