autoroute-express-promise
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -17,4 +17,4 @@ /// <reference path="typings/typings.d.ts" /> | ||
var createRoutes = _.curry(function (o, routeDefinitions) { | ||
var flattenedRoutes = routeDefinitions.map(route_methods_1.flattenRoute); | ||
_.forEach(routeDefinitions, function (routeDef) { | ||
var flattenedRoutes = _(routeDefinitions).map(route_methods_1.flattenRoute).flatten().value(); | ||
_.forEach(flattenedRoutes, function (routeDef) { | ||
var route = routeDef.route, methods = routeDef.methods, startRoute = o.baseRoute(route), options_ = _.assign({}, o, { routeName: route, baseRoute: startRoute }); | ||
@@ -21,0 +21,0 @@ _.forEach(methods, toControllers(options_)); // attach routes/methods to router |
{ | ||
"name": "autoroute-express-promise", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "autoroute for use with promises", | ||
@@ -35,4 +35,4 @@ "main": "index.js", | ||
"ramda": "^0.17.1", | ||
"route-methods": "0.0.1" | ||
"route-methods": "0.0.2" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
14032481
+ Addedroute-methods@0.0.2(transitive)
- Removedroute-methods@0.0.1(transitive)
Updatedroute-methods@0.0.2