(
req: express.Request,
res: express.Response,
options: { allowReferer?: boolean } = {}
)
| 565 | } |
| 566 | |
| 567 | function getPublicBasePathForRequest( |
| 568 | req: express.Request, |
| 569 | res: express.Response, |
| 570 | options: { allowReferer?: boolean } = {} |
| 571 | ): string { |
| 572 | return getResponsePublicBasePath(res) ?? getRequestPublicBasePath(req, options); |
| 573 | } |
| 574 | |
| 575 | function joinPublicBasePath(publicBasePath: string, routePathname: string): string { |
| 576 | const normalizedBasePath = normalizePublicBasePath(publicBasePath) ?? "/"; |
no test coverage detected