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