init
This commit is contained in:
12
auto-demo/demo/index.ts
Normal file
12
auto-demo/demo/index.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { listenSocket, QueryRouterServer } from '@kevisual/router/auto.ts'
|
||||
|
||||
|
||||
const app = new QueryRouterServer();
|
||||
|
||||
app.route({
|
||||
path: 'demo'
|
||||
}).define(async (ctx) => {
|
||||
ctx.body = 'Hello, this is the demo route!';
|
||||
}).addTo(app);
|
||||
|
||||
listenSocket({ app, timeout: 10 * 60 * 1000 });
|
||||
Reference in New Issue
Block a user