bump: and export src

This commit is contained in:
2025-06-05 00:47:53 +08:00
parent d2a03fc959
commit adaf954ae7
2 changed files with 10 additions and 15 deletions

View File

@@ -1,23 +1,15 @@
# router
```
```ts
import { App } from '@kevisual/router';
const app = new App();
app.listen(4002);
new app.Route('demo', '01')
.define(async (ctx) => {
ctx.body = '01';
return ctx;
})
.addTo(app);
app
.route({path:'demo', key: '02})
.define(async (ctx) => {
ctx.body = '02';
return ctx;
})
.addTo(app);
@@ -25,7 +17,6 @@ app
.route('demo', '03')
.define(async (ctx) => {
ctx.body = '03';
return ctx;
})
.addTo(app);
```