0
所有路由我尝试更快块快递
var _LOCK_ = true; // or load it from config
app.all('*', function(req,res,next){
if(_LOCK_) return res.send(401);
next();
});
// this place other routes
app.get(...);
app.post(...);
这种运作良好。但我怀疑是否所有的权利?
它完成这项工作。 – moka