/
opt
/
canhelp
/
node_modules
/
hono
/
dist
/
preset
/
/opt/canhelp/node_modules/hono/dist/preset
mkdir
upload
Name
Size
Mode
Actions
quick.js
466
0644
edit
dl
rm
tiny.js
284
0644
edit
dl
rm
Edit:
/opt/canhelp/node_modules/hono/dist/preset/quick.js
(466B)
// src/preset/quick.ts import { HonoBase } from "../hono-base.js"; import { LinearRouter } from "../router/linear-router/index.js"; import { SmartRouter } from "../router/smart-router/index.js"; import { TrieRouter } from "../router/trie-router/index.js"; var Hono = class extends HonoBase { constructor(options = {}) { super(options); this.router = new SmartRouter({ routers: [new LinearRouter(), new TrieRouter()] }); } }; export { Hono };
Save
cmd:
run