(
req: express.Request,
routePrefix: `/${string}`
)
| 584 | } |
| 585 | |
| 586 | function getDirectAppProxyHandlerPrefix( |
| 587 | req: express.Request, |
| 588 | routePrefix: `/${string}` |
| 589 | ): `/${string}` { |
| 590 | const directBasePath = getAppProxyBasePathFromRequestValue(req.originalUrl); |
| 591 | return directBasePath |
| 592 | ? (joinPublicBasePath(directBasePath, routePrefix) as `/${string}`) |
| 593 | : routePrefix; |
| 594 | } |
| 595 | |
| 596 | function getRelativeBaseHrefFromRoutePathname(routePathname: string): string { |
| 597 | const pathname = routePathname.startsWith("/") ? routePathname : `/${routePathname}`; |
no test coverage detected