Files
light-code-demo/demo-router.ts
2025-11-11 03:47:15 +08:00

14 lines
280 B
TypeScript

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()