This commit is contained in:
2025-08-13 22:53:50 +08:00
commit ec5e7a7ae4
11 changed files with 340 additions and 0 deletions

12
auto-demo/demo/index.ts Normal file
View 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 });