From c975400b4c223e8c87192fb93ff24d1e1a2ca5a7 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Mon, 26 Feb 2024 22:54:02 +0800 Subject: [PATCH] refactor: remove useless router --- lib/v2router.js | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 lib/v2router.js diff --git a/lib/v2router.js b/lib/v2router.js deleted file mode 100644 index cf2b5cec90..0000000000 --- a/lib/v2router.js +++ /dev/null @@ -1,17 +0,0 @@ -const dirname = __dirname + '/v2'; - -// 遍历整个 routes 文件夹,收集模块路由 router.js -const RouterPath = require('require-all')({ - dirname, - filter: /router\.js$/, -}); - -const routes = {}; - -// 将收集到的自定义模块路由进行合并 -for (const dir in RouterPath) { - const project = RouterPath[dir]['router.js']; // Do not merge other file - routes[dir] = project; -} - -module.exports = routes;