logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Router::Simple::Declare - declarative interface for Router::Simple

Description

       Easy way to declare router object.

Functions

       router
       connect
       submapper

Name

       Router::Simple::Declare - declarative interface for Router::Simple

See Also

       Router::Simple

perl v5.36.0                                       2022-11-27                       Router::Simple::Declare(3pm)

Synopsis

           use Router::Simple::Declare;

           my $router = router {
               connect '/{controller}/{action}/{id}';

               submapper('/account', {controller => 'Account'})
                   ->connect('/login', {action => 'login'})
                   ->connect('/logout', {action => 'logout'});
           };
           $router->match('/entry/show/3');

Usage

       look the SYNOPSIS.see Router::Simple for more details.

See Also