You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in a project of mine I made a small patch to the Route class, so that it can intercept also "greedy" parameters. That is, the last path parameter could be marked with an asterisk and captures all the remaining part of the path.
For example, the following route:
new Route({ path: 'problem/:problemClass/*mySubPath', ... });
will match the routes problem/classA/x/y/w/z setting opts.problemClass to classA and opts.mySubPath to x/y/w/z.
If you find this useful, this snippet of code in the Route class constructor does the magic.
Hi,
in a project of mine I made a small patch to the Route class, so that it can intercept also "greedy" parameters. That is, the last path parameter could be marked with an asterisk and captures all the remaining part of the path.
For example, the following route:
will match the routes
problem/classA/x/y/w/z
settingopts.problemClass
toclassA
andopts.mySubPath
tox/y/w/z
.If you find this useful, this snippet of code in the Route class constructor does the magic.
The text was updated successfully, but these errors were encountered: