Added Test Suite
[catagits/Catalyst-Action-REST.git] / lib / Catalyst / Controller / REST.pm
CommitLineData
256c894f 1package Catalyst::Controller::REST;
2
3use strict;
4use warnings;
5use base 'Catalyst::Controller';
6
7__PACKAGE__->mk_accessors(qw(serialize));
8
9__PACKAGE__->config(
10 serialize => {
7ad87df9 11 'default' => 'YAML',
256c894f 12 'stash_key' => 'rest',
7ad87df9 13 'map' => {
14 'text/x-yaml' => 'YAML',
15 'text/x-data-dumper' => [ 'Data::Serializer', 'Data::Dumper' ],
16 },
256c894f 17 }
18);
19
7ad87df9 20sub begin :ActionClass('Deserialize') {}
256c894f 21
7ad87df9 22sub end :ActionClass('Serialize') {}
256c894f 23
241;