Problems? Is your data what you think it is? | |
PerlMonks |
Re: Multiple routes that execute the same actionby moritz (Cardinal) |
on Mar 28, 2014 at 10:28 UTC ( [id://1080061]=note: print w/replies, xml ) | Need Help?? |
Sure. If you want to reuse code, you simply give it a name, and use that name twice.
Most frameworks also allow you to write the code as methods in a controller class (see for example Mojolicious::Guides::Growing).
In Section
Seekers of Perl Wisdom
|
|