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

x/hono/hono-base.ts>HonoBase#route

Fast, Lightweight, Web-standards
Extremely Popular
Go to Latest
method HonoBase.prototype.route
import { HonoBase } from "https://deno.land/x/hono@v3.10.5/hono-base.ts";

Type Parameters

SubPath extends string
SubEnv extends Env
SubSchema extends Schema
SubBasePath extends string

Parameters

path: SubPath
optional
app: Hono<SubEnv, SubSchema, SubBasePath>

Returns

Hono<E, MergeSchemaPath<SubSchema, MergePath<BasePath, SubPath>> & S, BasePath>