Tell Catalyst what you want
- use the REST action
- Catalyst::Action::REST
- then write:
sub action :Whatever {}
action_GET { my ($self, $c) = @_; ... }
action_POST { my ($self, $c) = @_; ... }
- advantages? Catalyst knows what you mean
- If someone sends a DELETE request, Catalyst will say "I can't do that"
- You write less, but get more