0
0
mirror of https://github.com/honojs/hono.git synced 2024-11-29 17:46:30 +01:00
hono/deno_dist/preset/tiny.ts

16 lines
453 B
TypeScript
Raw Normal View History

2023-05-09 15:15:10 +02:00
import { HonoBase } from '../hono-base.ts'
import type { HonoOptions } from '../hono-base.ts'
2023-05-09 15:15:10 +02:00
import { PatternRouter } from '../router/pattern-router/index.ts'
import type { Env, Schema } from '../types.ts'
export class Hono<
E extends Env = Env,
S extends Schema = {},
BasePath extends string = '/'
> extends HonoBase<E, S, BasePath> {
constructor(options: HonoOptions<E> = {}) {
super(options)
this.router = new PatternRouter()
}
}