0
0
mirror of https://github.com/honojs/hono.git synced 2024-12-01 10:51:01 +00:00
hono/deno_dist/preset/quick.ts

15 lines
408 B
TypeScript
Raw Normal View History

2023-05-09 13:15:10 +00:00
import { HonoBase } from '../hono-base.ts'
import { LinearRouter } from '../router/linear-router/index.ts'
import type { Env } from '../types.ts'
export class Hono<E extends Env = Env, S = {}, BasePath extends string = '/'> extends HonoBase<
2023-05-09 13:15:10 +00:00
E,
S,
BasePath
> {
constructor(init: Partial<Pick<Hono, 'getPath'> & { strict: boolean }> = {}) {
super(init)
2023-05-09 13:15:10 +00:00
this.router = new LinearRouter()
}
}