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

x/hono/mod.ts>StaticRouter#newRoute

Ultrafast web framework for Cloudflare Workers, Deno, and Bun. Fast, but not only fast.
Extremely Popular
Go to Latest
method StaticRouter.prototype.newRoute
import { StaticRouter } from "https://deno.land/x/hono@v2.5.5/mod.ts";

Returns

Record<string, Result<T>>