1 package Test::Catalyst::Action::REST::Controller::ActionsForBrowsers;
3 use namespace::autoclean;
5 BEGIN { extends qw/Catalyst::Controller::REST/ }
7 sub begin {} # Don't need serialization..
9 sub for_browsers : Local : ActionClass('REST::ForBrowsers') {
10 my ( $self, $c ) = @_;
11 $c->res->header('X-Was-In-TopLevel', 1);
14 sub for_browsers_GET : Private {
15 my ( $self, $c ) = @_;
19 sub for_browsers_GET_html : Private {
20 my ( $self, $c ) = @_;
21 $c->res->body('GET_html');
24 sub for_browsers_POST : Private {
25 my ( $self, $c ) = @_;
26 $c->res->body('POST');
29 sub end : Private {} # Don't need serialization..