code: function getRoute (routes, type) {
    if (!routes) return null;
    return Object.keys(routes).reduce(function (match, route) {
      return getRouteType(route) === type ? route : match;
    }, null);
  }
docs: Takes a hash of `routes`, and a `type` (ex: 'post'), and returns
  the corresponding route regex as a string. If no route found, returns `null`.
  
  @params {Object} routes
  @params {String} type
  @returns {String|Null}