mirror of
https://github.com/honojs/hono.git
synced 2024-11-29 17:46:30 +01:00
677b572fd5
* wip * Use RegExp instead of URLPattern. (#1039) * Use RegExp instead of URLPattern. * refactor(url-pattern-router): tidy up. * refactor(url-pattern-router): Tweaks type for mangling. * refactor: Rename URLPatternRouter to PatternRouter. * chore: denoify. --------- Co-authored-by: Taku Amano <taku@taaas.jp>
15 lines
340 B
TypeScript
15 lines
340 B
TypeScript
import { HonoBase } from './hono-base.ts'
|
|
import { PatternRouter } from './router/pattern-router/index.ts'
|
|
import type { Env } from './types.ts'
|
|
|
|
export class Hono<E extends Env = Env, S = {}, BasePath extends string = ''> extends HonoBase<
|
|
E,
|
|
S,
|
|
BasePath
|
|
> {
|
|
constructor() {
|
|
super()
|
|
this.router = new PatternRouter()
|
|
}
|
|
}
|