Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
log api routes
Browse files Browse the repository at this point in the history
  • Loading branch information
zaach committed Dec 21, 2012
1 parent c6403b4 commit 4eff9d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/api_loader.js
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 4eff9d8

Please sign in to comment.