Dev Build / cleanup (push) Canceled after 0s
Dev Build / typecheck (push) Canceled after 0s
Dev Build / build (linux-arm64, ubuntu-24.04-arm, linux-arm64) (push) Canceled after 0s
Dev Build / build (linux-x64, ubuntu-latest, linux-x64) (push) Canceled after 0s
Dev Build / build (win-x64, windows-latest, win32-x64) (push) Canceled after 0s
Dev Build / dispatch-dev-docker (push) Skipped
29 lines
951 B
Plaintext
29 lines
951 B
Plaintext
import { HonoBase as Hono$1 } from "./hono-base.js";
|
|
import { RegExpRouter } from "./router/reg-exp-router/router.js";
|
|
import "./router/reg-exp-router/index.js";
|
|
import { SmartRouter } from "./router/smart-router/router.js";
|
|
import { TrieRouter } from "./router/trie-router/router.js";
|
|
import "./router/trie-router/index.js";
|
|
//#region src/hono.ts
|
|
/**
|
|
* The Hono class extends the functionality of the HonoBase class.
|
|
* It sets up routing and allows for custom options to be passed.
|
|
*
|
|
* @template E - The environment type.
|
|
* @template S - The schema type.
|
|
* @template BasePath - The base path type.
|
|
*/
|
|
var Hono = class extends Hono$1 {
|
|
/**
|
|
* Creates an instance of the Hono class.
|
|
*
|
|
* @param options - Optional configuration options for the Hono instance.
|
|
*/
|
|
constructor(options = {}) {
|
|
super(options);
|
|
this.router = options.router ?? new SmartRouter({ routers: [new RegExpRouter(), new TrieRouter()] });
|
|
}
|
|
};
|
|
//#endregion
|
|
export { Hono };
|