Module

x/hono/router/smart-router/index.ts>SmartRouter

Ultrafast web framework for the Edges
Very Popular
Go to Latest
class SmartRouter
implements Router<T>
import { SmartRouter } from "https://dotland.deno.dev/x/hono@v3.2.5/router/smart-router/index.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> | null