Cherry pick everything bar the use parent change from 25d49c2, fixing RT#46680
[catagits/Catalyst-Action-REST.git] / t / lib / Test / Catalyst / Action / REST / Controller / Deserialize.pm
CommitLineData
c5c27d42 1package Test::Catalyst::Action::REST::Controller::Deserialize;
ffb4cc71 2
3use base 'Catalyst::Controller';
ffb4cc71 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
15sub test :Local :ActionClass('Deserialize') {
16 my ( $self, $c ) = @_;
17 $c->res->output($c->req->data->{'kitty'});
18}
19
201;