Web::MREST::InitRouter - Routines for initializing our Path::Router instance
Web::MREST uses Path::Router to match URIs to resources. All resources are packed into a single object. The singleton is exported as $router from this module and can be initialized by calling init_router, which is also exported, with no arguments.
$router
init_router
use Web::MREST::InitRouter qw( $router ); ... Web::MREST::InitRouter::init_router() unless defined $router and $router->can( 'match' );
This module provides the following exports:
$resources
To install Web::MREST, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Web::MREST
CPAN shell
perl -MCPAN -e shell install Web::MREST
For more information on module installation, please visit the detailed CPAN module installation guide.