Router::Simple::Declare - declarative interface for Router::Simple
my $router = router { connect '/{controller}/{action}/{id}'; submapper(class => 'Account', path_prefix => '/account') ->connect('/login', {action => 'login'}) ->connect('/logout', {action => 'logout'}); };
Easy way to declare router object.
look the SYNOPSIS.see Router::Simple for more details.
Router::Simple
To install Router::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Router::Simple
CPAN shell
perl -MCPAN -e shell install Router::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.