Permalink
Browse files

log api routes

  • Loading branch information...
1 parent c6403b4 commit 4eff9d8259212ee07e7cda994619c783927251fd @zaach zaach committed Dec 21, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/api_loader.js
View
2 lib/api_loader.js
@@ -12,10 +12,12 @@ function addRouteFromFile(hapiServer, apiPath) {
impls.forEach(function (impl) {
impl.path = '/' + route;
hapiServer.addRoute(impl);
+ console.log('route:', impl.method, impl.path);
});
} else {
impls.path = '/' + route;
hapiServer.addRoute(impls);
+ console.log('route:', impls.method, impls.path);
}
}

0 comments on commit 4eff9d8

Please sign in to comment.