14 lines
280 B
TypeScript
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() |