Compare commits

...

2 Commits

Author SHA1 Message Date
Rached Ben Mustapha de9f41487c bypass authv4 2018-01-22 18:19:03 +01:00
Rached Ben Mustapha 4336a85b85 add run script 2018-01-22 17:48:50 +01:00
2 changed files with 5 additions and 1 deletions

View File

@ -262,13 +262,13 @@ class Router {
* @return {undefined}
*/
_processSecurityChecks(utapiRequest, route, cb) {
return this._startRequest(utapiRequest, route, cb);
const log = utapiRequest.getLog();
return this._authSquared(utapiRequest, err => {
if (err) {
log.trace('error from vault', { errors: err });
return cb(err);
}
return this._startRequest(utapiRequest, route, cb);
});
}

4
run.js Normal file
View File

@ -0,0 +1,4 @@
const server = require('./lib/server.js');
server();