1
0
Fork 0

REALLY fix routing tests

This commit is contained in:
Alan Plum 2017-02-14 17:18:40 +01:00
parent 01f83c20a2
commit 022ff11886
No known key found for this signature in database
GPG Key ID: 8ED72A9A323B6EFD
1 changed files with 2 additions and 2 deletions

View File

@ -2050,11 +2050,11 @@ exports.buildRouting = buildRouting;
exports.buildRoutingTree = buildRoutingTree;
exports.flattenRoutingTree = flattenRoutingTree;
exports.nextRouting = nextRouting;
exports.firstRouting = function firstRouting (method, parts, routes) {
exports.firstRouting = function (method, parts, routes) {
if (typeof parts === 'string') {
parts = parts.split('/').filter(s => s !== '');
}
return firstRouting(method, parts, routes);
return firstRouting(method, parts, routes, parts);
};
// public functions