lib/poet/routes.js
function bindRoutes (poet) {
  var app = poet.app;
  var routes = poet.options.routes;

  // If no routes specified, abort
  if (!routes) return;

  Object.keys(routes).map(function (route) {
    var type = utils.getRouteType(route);
    if (!type) return;

    app.get(route, routeMap[type](poet, routes[route]));
  });
}
function bindRoutes (poet) {
  var app = poet.app;
  var routes = poet.options.routes;

  // If no routes specified, abort
  if (!routes) return;

  Object.keys(routes).map(function (route) {
    var type = utils.getRouteType(route);
    if (!type) return;

    app.get(route, routeMap[type](poet, routes[route]));
  });
}
function bindRoutes ( poet ) { var app = poet . app ; var routes = poet . options . routes ; // If no routes specified, abort if ( ! routes ) return ; Object . keys ( routes ) . map ( function ( route ) { var type = utils . getRouteType ( route ) ; if ( ! type ) return ; app . get ( route , routeMap [ type ] ( poet , routes [ route ] ) ) ; } ) ; }
Takes a `poet` instance and generates routes based off of
`poet.options.routes` mappings.

@params {Object} poet
Takes a poet instance and generates routes based off of poet . options . routes mappings .