diff --git a/js/server/modules/org/arangodb/actions.js b/js/server/modules/org/arangodb/actions.js index 64e193856a..86f901543b 100644 --- a/js/server/modules/org/arangodb/actions.js +++ b/js/server/modules/org/arangodb/actions.js @@ -861,8 +861,8 @@ function flattenRouting (routes, path, urlParameters, depth, prefix) { prefix: prefix, depth: depth, urlParameters: urlParameters, - callback: routes.routes.callback, - route: routes.routes.route + callback: sorted[i].callback, + route: sorted[i].route }; }