you can config that in the middleware, in the config/http.js file
// Logs each request to the consolerequestLogger: function (req, res, next) {
console.log("API :: ", req.method, req.url);
return next();
},
And setup it on the order var:
order: [
'cookieParser',
'session',
'bodyParser',
'requestLogger', //just here
'compress',
'poweredBy',
'router',
'www',
'favicon',
],
0 Comments
Post a Comment