forked from lix-project/hydra
Only serialize JSON and HTML, not the C::C::REST defaults
Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
parent
eab13d8736
commit
f231c23b75
|
@ -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',
|
||||||
|
|
Loading…
Reference in a new issue