Fixed failing Content-Type tests.
[catagits/Gitalist.git] / lib / Gitalist / Controller / Root.pm
index 14ef8ee..eb6a147 100644 (file)
@@ -76,6 +76,18 @@ sub error_404 : Action {
     $c->response->body('Page not found');
 }
 
+__PACKAGE__->config(
+    default => 'text/html',
+    map => {
+        'application/json' => [qw/ JSON /],
+        map { $_ => [qw/ View Default /] }
+            qw( text/css text/html text/plain
+                application/atom+xml application/rss+xml 
+                application/rss application/xml )
+
+    }
+);
+
 __PACKAGE__->meta->make_immutable;
 
 __END__