MCPcopy Create free account
hub / github.com/pollinations/pollinations / getRoutePath

Function getRoutePath

shared/util.ts:4–10  ·  view source on GitHub ↗
(c: Context)

Source from the content-addressed store, hash-verified

2import { routePath } from "hono/route";
3
4export function getRoutePath(c: Context): string {
5 try {
6 return routePath(c) || c.req.path;
7 } catch {
8 return c.req.path;
9 }
10}
11
12type NonNullableValue<T> = T extends null | undefined ? never : T;
13

Callers 3

trackFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected