NAME

HTTP::Router::Resources

SYNOPSIS

use HTTP::Router;

my $router = HTTP::Router->define(sub {
    $_->resources('users');

    $_->resource('account');

    $_->resources('members', sub {
        $_->resources('articles');
    });

    $_->resources('members', {
        controller => 'Users',
        collection => { login => 'GET' },
        member     => { settings => 'GET' },
    });
});

METHODS

resources($name, $args?, $block?)

resource($name, $args?, $block?)

AUTHOR

NAKAGAWA Masaki <masaki@cpan.org>

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

HTTP::Router::Mapper, HTTP::Router