Fixing type (s/Rest/REST/g)
[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 => {
eccb2137 11 'default' => 'YAML',
256c894f 12 'stash_key' => 'rest',
eccb2137 13 'map' => {
14 'text/x-yaml' => 'YAML',
7ad87df9 15 'text/x-data-dumper' => [ 'Data::Serializer', 'Data::Dumper' ],
16 },
256c894f 17 }
18);
19
eccb2137 20sub begin : ActionClass('Deserialize') {
21}
256c894f 22
eccb2137 23sub end : ActionClass('Serialize') {
24}
256c894f 25
261;