(publicBasePath: string, routePathname: string)
| 573 | } |
| 574 | |
| 575 | function joinPublicBasePath(publicBasePath: string, routePathname: string): string { |
| 576 | const normalizedBasePath = normalizePublicBasePath(publicBasePath) ?? "/"; |
| 577 | const normalizedRoutePathname = routePathname.startsWith("/") |
| 578 | ? routePathname |
| 579 | : `/${routePathname}`; |
| 580 | |
| 581 | return normalizedBasePath === "/" |
| 582 | ? normalizedRoutePathname |
| 583 | : `${normalizedBasePath}${normalizedRoutePathname}`; |
| 584 | } |
| 585 | |
| 586 | function getDirectAppProxyHandlerPrefix( |
| 587 | req: express.Request, |
no test coverage detected