This commit is contained in:
2025-11-11 03:47:15 +08:00
commit 5a8491b83a
9 changed files with 443 additions and 0 deletions

14
demo-router.ts Normal file
View File

@@ -0,0 +1,14 @@
import { QueryRouterServer } from "@kevisual/router";
const app = new QueryRouterServer();
app.route({
path: 'main'
}).define(async (ctx) => {
ctx.body = {
message: 'this is main. filename: root/listen-demo/router.ts',
params: ctx.query
}
}).addTo(app)
app.wait()