Skip to main content
Module

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

Ultrafast web framework for the Edge
Extremely Popular
Go to Latest
class SmartRouter
implements Router<T>
import { SmartRouter } from "https://deno.land/x/hono@v3.0.5/router/smart-router/index.ts";

Constructors

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

Properties

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

Methods

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