Only serialize JSON and HTML, not the C::C::REST defaults

Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
Shea Levy 2013-07-26 14:25:25 -04:00
parent eab13d8736
commit f231c23b75

View file

@ -4,8 +4,12 @@ use strict;
use warnings; use warnings;
use base 'Catalyst::Controller::REST'; use base 'Catalyst::Controller::REST';
# Hack: Erase the map set by C::C::REST
__PACKAGE__->config( map => undef );
__PACKAGE__->config( __PACKAGE__->config(
map => { map => {
'application/json' => 'JSON',
'text/x-json' => 'JSON',
'text/html' => [ 'View', 'TT' ] 'text/html' => [ 'View', 'TT' ]
}, },
default => 'text/html', default => 'text/html',