diff --git a/src/lib/Hydra/Base/Controller/REST.pm b/src/lib/Hydra/Base/Controller/REST.pm index 606f0e09..7adb1cf4 100644 --- a/src/lib/Hydra/Base/Controller/REST.pm +++ b/src/lib/Hydra/Base/Controller/REST.pm @@ -4,8 +4,12 @@ use strict; use warnings; use base 'Catalyst::Controller::REST'; +# Hack: Erase the map set by C::C::REST +__PACKAGE__->config( map => undef ); __PACKAGE__->config( map => { + 'application/json' => 'JSON', + 'text/x-json' => 'JSON', 'text/html' => [ 'View', 'TT' ] }, default => 'text/html',