Action::REST::ForBrowsers works, with tests
[catagits/Catalyst-Action-REST.git] / t / lib / Test / Catalyst / Action / REST / Controller / ActionsForBrowsers.pm
CommitLineData
83273f94 1package Test::Catalyst::Action::REST::Controller::ActionsForBrowsers;
2use Moose;
3use namespace::autoclean;
4
5BEGIN { extends qw/Catalyst::Controller::REST/ }
6
7sub begin {} # Don't need serialization..
8
9sub for_browsers : Local : ActionClass('REST::ForBrowsers') {
10 my ( $self, $c ) = @_;
11 $c->res->header('X-Was-In-TopLevel', 1);
12}
13
14sub for_browsers_GET : Private {
15 my ( $self, $c ) = @_;
16 $c->res->body('GET');
17}
18
19sub for_browsers_GET_html : Private {
20 my ( $self, $c ) = @_;
21 $c->res->body('GET_html');
22}
23
24sub for_browsers_POST : Private {
25 my ( $self, $c ) = @_;
26 $c->res->body('POST');
27}
28
29sub end : Private {} # Don't need serialization..
30
311;
32