14 lines
271 B
TypeScript
14 lines
271 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: test/demo/main.ts',
|
|
params: ctx.query
|
|
}
|
|
}).addTo(app)
|
|
|
|
app.wait() |