Catalyst-ActionRole-MatchRequestMethod
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/Catalyst/ActionRole/MatchRequestMethod.pm view on Meta::CPAN
BEGIN {
extends 'Catalyst::Controller::ActionRole';
}
__PACKAGE__->config(
action_roles => ['MatchRequestMethod'],
);
sub get_foo : Path Method('GET') { ... }
sub update_foo : Path Method('POST') { ... }
sub create_foo : Path Method('PUT') { ... }
sub delete_foo : Path Method('DELETE') { ... }
sub foo : Path Method('GET') Method('POST') { ... }
=head1 DESCRIPTION
This module allows you to write L<Catalyst> actions which only match certain
HTTP request methods. Actions which would normally be dispatched to will not
match if the request method is incorrect, allowing less specific actions to
match the path instead.
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.971 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )