e228d4dd54e0513665cbe7ff09cdc0dbd90f1229
[catagits/Catalyst-Action-REST.git] / t / lib / Test / Catalyst / Action / Deserialize / Controller / Root.pm
1 package Test::Catalyst::Action::Deserialize::Controller::Root;
2
3 use base 'Catalyst::Controller';
4 __PACKAGE__->config->{namespace} = '';
5
6 __PACKAGE__->config(
7     'stash_key' => 'rest',
8     'map'       => {
9         'text/x-yaml'        => 'YAML',
10         'text/x-data-dumper' => [ 'Data::Serializer', 'Data::Dumper' ],
11         'text/broken'        => 'Broken',
12     },
13 );
14
15
16 sub test :Local :ActionClass('Deserialize') {
17     my ( $self, $c ) = @_;
18     $c->res->output($c->req->data->{'kitty'});
19 }
20
21 1;