feat: init base module

This commit is contained in:
xion
2024-06-22 23:47:43 +08:00
commit 35f1182aec
18 changed files with 13328 additions and 0 deletions

9
src/test/index.ts Normal file
View File

@@ -0,0 +1,9 @@
import { router } from '../modules/router.ts';
import { Route } from '@abearxiong/router';
const getList = new Route('test', 'getList');
getList.run = async (ctx) => {
ctx.body = 'test';
return ctx;
};
router.add(getList);