”2016-03-31”

This commit is contained in:
Martin Donnelly 2016-03-31 16:45:01 +01:00
parent 5dc2f8b45f
commit 8d0c35759b

View File

@ -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); });