mirror of https://gitee.com/bigwinds/arangodb
REALLY fix routing tests
This commit is contained in:
parent
01f83c20a2
commit
022ff11886
|
@ -2050,11 +2050,11 @@ exports.buildRouting = buildRouting;
|
||||||
exports.buildRoutingTree = buildRoutingTree;
|
exports.buildRoutingTree = buildRoutingTree;
|
||||||
exports.flattenRoutingTree = flattenRoutingTree;
|
exports.flattenRoutingTree = flattenRoutingTree;
|
||||||
exports.nextRouting = nextRouting;
|
exports.nextRouting = nextRouting;
|
||||||
exports.firstRouting = function firstRouting (method, parts, routes) {
|
exports.firstRouting = function (method, parts, routes) {
|
||||||
if (typeof parts === 'string') {
|
if (typeof parts === 'string') {
|
||||||
parts = parts.split('/').filter(s => s !== '');
|
parts = parts.split('/').filter(s => s !== '');
|
||||||
}
|
}
|
||||||
return firstRouting(method, parts, routes);
|
return firstRouting(method, parts, routes, parts);
|
||||||
};
|
};
|
||||||
|
|
||||||
// public functions
|
// public functions
|
||||||
|
|
Loading…
Reference in New Issue