Module

x/hono/mod.ts>SmartRouter

Fast, Lightweight, Web-standards
Extremely Popular
Go to Latest
class SmartRouter
implements Router<T>
import { SmartRouter } from "https://dotland.deno.dev/x/hono@v4.1.0/mod.ts";

Constructors

new
SmartRouter(init: Pick<SmartRouter<T>, "routers">)

Properties

readonly
activeRouter
name: string
routers: Router<T>[]
optional
routes: [string, string, T][]

Methods

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