The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

MojoX::Dispatcher::Routes - Routes Dispatcher

SYNOPSIS

    use MojoX::Dispatcher::Routes;

    my $dispatcher = MojoX::Dispatcher::Routes->new;

DESCRIPTION

MojoX::Dispatcher::Routes is a dispatcher based on MojoX::Routes.

ATTRIBUTES

MojoX::Dispatcher::Routes inherits all attributes from MojoX::Routes and implements the follwing the ones.

controllers

    my $controllers = $dispatcher->controllers;
    $dispatcher     = $dispatcher->controllers({ ... });

namespace

    my $namespace = $dispatcher->namespace;
    $dispatcher   = $dispatcher->namespace('Foo::Bar::Controller');

METHODS

MojoX::Dispatcher::Routes inherits all methods from MojoX::Routes and implements the follwing the ones.

dispatch

    $dispatcher = $dispatcher->dispatch(
        MojoX::Dispatcher::Routes::Context->new
    );