This commit is contained in:
2025-05-03 21:12:58 +08:00
parent c2a0623482
commit d6014b3c40
19 changed files with 115 additions and 35 deletions

15
src/test/router.ts Normal file
View File

@@ -0,0 +1,15 @@
import { App, QueryRouterServer } from '@kevisual/router';
export const app = new App();
app
.route({
path: 'k',
key: 'k',
})
.define(async (ctx) => {
ctx.body = 'hello world';
})
.addTo(app);
const res = await app.router.queryRoute({ path: 'k', key: 'k' });
console.log('res', res);