1
0
Fork 0

Fixed base middleware routing match. It now ignores a trailing slash

This commit is contained in:
Michael Hackstein 2015-02-02 16:55:58 +01:00
parent 7c3b7b02f6
commit cf5e3db098
2 changed files with 1 additions and 2 deletions

View File

@ -997,7 +997,7 @@ function flattenRouting (routes, path, rexpr, urlParameters, depth, prefix) {
result = result.concat(flattenRouting(
routes.prefix,
path + "/...",
rexpr + "(/[^/]+)*",
rexpr + "(/[^/]+)*/?",
urlParameters._shallowCopy,
depth + 1,
true));

View File

@ -396,7 +396,6 @@
_.extend(routes.models, foxx.models);
p = ri.urlPrefix;
// TODO p = "";
for (k = 0; k < rm.length; ++k) {
var key = rm[k];