fix: remove

This commit is contained in:
xion 2024-06-23 01:20:28 +08:00
parent 35f1182aec
commit 23ca75e870
2 changed files with 4 additions and 1 deletions

2
.gitignore vendored
View File

@ -1 +1,3 @@
node_modules
dist

View File

@ -26,6 +26,7 @@ router.add(removeRouter);
// add router
export const addRouter = new Route('admin', 'addRouter');
addRouter.run = async (ctx) => {
const { path, key } = ctx.query;
router.add(new Route(path, key));
@ -38,7 +39,7 @@ router.add(addRouter);
export const updateRouter = new Route('admin', 'updateRouter');
updateRouter.run = async (ctx) => {
const { path, key } = ctx.query;
// router.update(path, key);
router.add(new Route(path, key));
ctx.body = 'success';
return ctx;
}