Module

x/hono/router/pattern-router/router.ts>PatternRouter

Fast, Lightweight, Web-standards
Very Popular
Go to Latest
class PatternRouter
implements Router<T>
import { PatternRouter } from "https://dotland.deno.dev/x/hono@v3.10.5/router/pattern-router/router.ts";

Properties

private
routes: Route<T>[]
name: string

Methods

add(
method: string,
path: string,
handler: T,
)
match(method: string, path: string): Result<T>