mirror of
https://gitlab.silvrtree.co.uk/martind2000/censis-obrand.git
synced 2025-01-10 21:55:08 +00:00
”2016-03-31”
This commit is contained in:
parent
5dc2f8b45f
commit
8d0c35759b
@ -19,6 +19,18 @@ module.exports = function(app) {
|
||||
var morgan = require('morgan');
|
||||
app.use(morgan('dev'));
|
||||
|
||||
function usingProxy() {
|
||||
return !!process.argv.filter(function (arg) {
|
||||
return arg.indexOf('--proxy') === 0;
|
||||
}).length;
|
||||
}
|
||||
|
||||
/* ... */
|
||||
|
||||
if (usingProxy()) { return; }
|
||||
|
||||
|
||||
|
||||
mocks.forEach(function(route) { route(app); });
|
||||
proxies.forEach(function(route) { route(app); });
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user