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