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

Function isHtmlRoute

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

Source from the content-addressed store, hash-verified

144};
145
146function isHtmlRoute(pathname: string) {
147 return (
148 pathname === "/models" ||
149 pathname === "/providers" ||
150 pathname === "/labs" ||
151 pathname.startsWith("/models/") ||
152 pathname.startsWith("/providers/") ||
153 pathname.startsWith("/labs/")
154 );
155}
156
157function htmlRouteAssetPath(pathname: string) {
158 const normalized =

Callers 1

fetchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected