deno.land / x / hono@v4.2.5 / preset / quick.ts
1234567891011121314151617181920import { HonoBase } from '../hono-base.ts'import type { HonoOptions } from '../hono-base.ts'import { LinearRouter } from '../router/linear-router/index.ts'import { SmartRouter } from '../router/smart-router/index.ts'import { TrieRouter } from '../router/trie-router/index.ts'import type { BlankSchema, Env, Schema } from '../types.ts'
export class Hono< E extends Env = Env, S extends Schema = BlankSchema, BasePath extends string = '/'> extends HonoBase<E, S, BasePath> { constructor(options: HonoOptions<E> = {}) { super(options) this.router = new SmartRouter({ routers: [new LinearRouter(), new TrieRouter()], }) }}
Version Info