[Catalyst] Multiple path for the same action

Julien Sobrier julien at sobrier.net
Thu Feb 18 00:18:41 GMT 2010


Hello,
I'd like to assign multiple pass, at run-time, to the same action. For
example:

package MyApp::Controller::Foo;

sub foo :Path {...}

Then, have /foo, /bar, /other associated with MyApp::Controller::Foo->foo

One way to do it woould be to catch /bar and /other in the "default" action,
and forward it it to /foo. But this does not look like a clean solution. Any
better way do achieve this?

Thank you
Julien
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20100217/9b835=
5d9/attachment.htm


More information about the Catalyst mailing list