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