How can I have more than one pathpart in an action at the same time? I tried with Regex and LocalRegex but it realy doesnt work.
This is the result I want:
/typeone/*/*/something
/typetwo/*/*/something
I want to achieve this by using only one base action that captures the two args in from, and can have either the "typeone" or "typetwo" pathpart.
The "something" is just another action that is chained to that base. I don't want to have two bases with two different pathparts, that would require me to have two something chained to each of the bases, right?
Thank you
sub anchor :Chained :Regex('^type(one|two)$') :CaptureArgs(2) {} ... sub something :Chained('anchor') :Args(0) {}
. Maybe its because Regex is consuming all three parts instead of honoring theCaptureArgs(2)
. – Counterproposal