refactor: remove useless router

This commit is contained in:
DIYgod
2024-02-26 22:54:02 +08:00
parent 765c6777f8
commit c975400b4c
-17
View File
@@ -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;