update: fix docs

This commit is contained in:
2025-06-20 16:20:56 +08:00
parent d2ebb5f488
commit 187900ad55
6 changed files with 45 additions and 10 deletions

22
src/test/static.ts Normal file
View File

@@ -0,0 +1,22 @@
import { proxyRoute, initProxy } from '@kevisual/local-proxy/proxy.ts';
initProxy({
pagesDir: './demo',
watch: true,
});
import { App } from '../app.ts';
const app = new App();
app
.route({
path: 'a',
})
.define(async (ctx) => {
ctx.body = '1';
})
.addTo(app);
app.listen(2233, () => {
console.log('Server is running on http://localhost:2233');
});
app.onServerRequest(proxyRoute);