Web::MREST::InitRouter(3pm)

Web::MREST::InitRouter3pm

Routines for initializing our path::router instance

Usage

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.

    use Web::MREST::InitRouter qw( $router );
    ...
    Web::MREST::InitRouter::init_router() unless defined $router and $router->can( 'match' );

Package variables

Exports

This module provides the following exports:

$router (Path::Router singleton)
$resources (expanded resource definitions)

Functions

Releases

5 releases since Debian 9 (Stretch); the text changed 3 times.

  1. 9
  2. 10
  3. 11
  4. 12–13

From libweb-mrest-perl 0.290-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.