Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

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

Properties

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

Methods

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