···11-import { html } from './html';
21import meow from './meow.txt';
22+33+import { html } from './html';
44+import { readFile } from 'ant:fs';
35import { Radix3 } from './radix3';
4657const router = new Radix3();
6877-router.insert('/', c => {
88- return c.res.body(`Welcome to Ant HTTP Server with Radix3 Router!
99-1010-Available routes:
1111- GET /
1212- GET /meow
1313- GET /hello
1414- GET /status
1515- GET /users/:id
1616- GET /users/:id/posts
1717- GET /files/*path
1818- GET /api/v1/users
1919- GET /api/v2/demo`);
2020-});
99+router.insert('/', c => c.res.body(`Welcome to Ant ${Ant.version}!`));
21102211router.insert('/meow', async c => {
2312 return c.res.body(meow);
1313+});
1414+1515+router.insert('/fs/meow', async c => {
1616+ const file = await readFile('./meow.txt');
1717+ return c.res.body(file);
2418});
25192620router.insert('/hello', async c => {