Authored by weiqingting

提交

... ... @@ -73,8 +73,8 @@ var apiCofig = {
}
app.use(session(options));
},
useToOuter:function(app,controllers){
app.use(grayroute(controllers));
useToOuter:function(app){
app.use(grayroute());
}
};
... ...
... ... @@ -120,7 +120,7 @@ module.exports = function (apiCofig) {
next(err);
});
/*後置中间间*/
apiCofig.useToOuter && apiCofig.useToOuter(App, ContRegisters);
apiCofig.useToOuter && apiCofig.useToOuter(App);
App.use(function (req, res, next) {
res.end();
... ...
... ... @@ -10,7 +10,7 @@ function addFiles(req) {
_.merge(body, req.body);
return body;
}
module.exports=function(controllers){
module.exports=function(){
var Iaccount=global.Register.system;
return function(err,req,res,next){
console.log("req.originalUrl:"+req.originalUrl)
... ...