perl_help26 has asked for the wisdom of the Perl Monks concerning the following question:
Hello, I was wondering if there was a way to make several routes run the same code... I would like a straight method similar to:
For example:
I know there can be workarounds such as redirection or replacing myaction1 and myaction2 by /:action but is there anything straightforward no processing? Thanksss
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Multiple routes that execute the same action
by tobyink (Canon) on Mar 28, 2014 at 10:09 UTC | |
by McA (Priest) on Mar 28, 2014 at 12:40 UTC | |
by perl_help26 (Beadle) on Mar 28, 2014 at 13:19 UTC | |
|
Re: Multiple routes that execute the same action
by moritz (Cardinal) on Mar 28, 2014 at 10:28 UTC | |
by perl_help26 (Beadle) on Mar 28, 2014 at 13:21 UTC | |
|
Re: Multiple routes that execute the same action
by zentara (Cardinal) on Mar 28, 2014 at 09:55 UTC | |
by Anonymous Monk on Mar 28, 2014 at 18:24 UTC | |
|
Re: Multiple routes that execute the same action
by locked_user sundialsvc4 (Abbot) on Mar 28, 2014 at 12:33 UTC |