Skip to main content
Module

x/hono/router.ts

Ultrafast web framework for Cloudflare Workers, Deno, and Bun. Fast, but not only fast.
Extremely Popular
Go to Latest
File
export const METHOD_NAME_ALL = 'ALL' as constexport const METHOD_NAME_ALL_LOWERCASE = 'all' as const
export interface Router<T> { add(method: string, path: string, handler: T): void match(method: string, path: string): Result<T> | null}
export interface Result<T> { handlers: T[] params: Record<string, string>}