MCPcopy Index your code
hub / github.com/coder/mux / getDirectAppProxyHandlerPrefix

Function getDirectAppProxyHandlerPrefix

src/node/orpc/server.ts:586–594  ·  view source on GitHub ↗
(
  req: express.Request,
  routePrefix: `/${string}`
)

Source from the content-addressed store, hash-verified

584}
585
586function 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
596function getRelativeBaseHrefFromRoutePathname(routePathname: string): string {
597 const pathname = routePathname.startsWith("/") ? routePathname : `/${routePathname}`;

Callers 1

createOrpcServerFunction · 0.85

Calls 2

joinPublicBasePathFunction · 0.85

Tested by

no test coverage detected