MCPcopy Create free account
hub / github.com/anomalyco/models.dev / htmlRouteAssetPath

Function htmlRouteAssetPath

packages/function/src/worker.ts:157–163  ·  view source on GitHub ↗
(pathname: string)

Source from the content-addressed store, hash-verified

155}
156
157function htmlRouteAssetPath(pathname: string) {
158 const normalized =
159 pathname !== "/" && pathname.endsWith("/")
160 ? pathname.slice(0, -1)
161 : pathname;
162 return `${normalized}/index.html`;
163}
164
165// Returns a stable lookup key for an IP address.
166// IPv4: full address as /32 (e.g. "203.0.113.45/32").

Callers 1

fetchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected