tiny.ts
This file
Path
src/preset/tiny.ts
20 lines 路 534 bytes 路 TypeScript
Last changed by
Not known.
History of this fileTake it
123456789101112131415161718192021/** * @module * The preset that uses `PatternRouter`. */
import { HonoBase } from '../hono-base'import type { HonoOptions } from '../hono-base'import { PatternRouter } from '../router/pattern-router'import type { BlankEnv, BlankSchema, Env, Schema } from '../types'
export class Hono< E extends Env = BlankEnv, S extends Schema = BlankSchema, BasePath extends string = '/',> extends HonoBase<E, S, BasePath> { constructor(options: HonoOptions<E> = {}) { super(options) this.router = new PatternRouter() }}