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

x/hono/router.ts>Router

Lightweight, Ultrafast, Web Standards
Extremely Popular
Go to Latest
interface Router
import { type Router } from "https://deno.land/x/hono@v3.7.1/router.ts";

Properties

name: string

Methods

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