Skip to main content
Module

x/hono/mod.ts>PatternRouter

Lightweight, Ultrafast, Web Standards
Extremely Popular
Go to Latest
class PatternRouter
implements Router<T>
import { PatternRouter } from "https://deno.land/x/hono@v3.8.4/mod.ts";

Properties

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

Methods

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