|
@@ -95,7 +95,7 @@ app.use(async function (req, res, next) {
|
|
|
});
|
|
});
|
|
|
//加载路由文件
|
|
//加载路由文件
|
|
|
fileUtils.getGlobbedFiles('./modules/**/routes/*.js').forEach(function(modelPath) {
|
|
fileUtils.getGlobbedFiles('./modules/**/routes/*.js').forEach(function(modelPath) {
|
|
|
- require(path.resolve(modelPath))(app);
|
|
|
|
|
|
|
+ if(modelPath.indexOf("import/routes")==-1) require(path.resolve(modelPath))(app);//排除掉导出导入服务
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
//app.use(express.static(_rootDir+"/web"));
|
|
//app.use(express.static(_rootDir+"/web"));
|