Example #1
0
 routes.forEach(function(route){
   route.path = route.path.replace(/\/+/g, '/');
   log.i('hook', chalk.bold.green(route.method.toUpperCase()), chalk.underline.grey(route.path));
   server[route.method](route.path, function(req, res, next){
     req.log = log;
     next();
   }, route.fn);
 });