Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update router.js

  • Loading branch information...
commit 8782b395e2aad14988353446af408a858f0f59f2 1 parent 36d0932
@aljimenez aljimenez authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  lib/router.js
View
3  lib/router.js
@@ -163,6 +163,9 @@ module.exports = {
Object.keys(routes).forEach(function (name) {
var route = routes[name];
route.annotations = route.annotations || {};
+ // By default the "client" annotation is considered true, unless specified as false.
+ // This means that routes are exposed to the client unless the "client" annotation
+ // is set to false.
route.annotations.client = route.annotations.client !== false;
app.annotate(route.path, route.annotations);
Object.keys(route.verbs).forEach(function (verb) {
Please sign in to comment.
Something went wrong with that request. Please try again.