projects
/
catagits/Gitalist.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Add RESTful Content-Type bits to the root controller, add a simple test for summary...
[catagits/Gitalist.git]
/
lib
/
Gitalist
/
Controller
/
Root.pm
diff --git
a/lib/Gitalist/Controller/Root.pm
b/lib/Gitalist/Controller/Root.pm
index
14ef8ee
..
4bbda7f
100644
(file)
--- a/
lib/Gitalist/Controller/Root.pm
+++ b/
lib/Gitalist/Controller/Root.pm
@@
-76,6
+76,14
@@
sub error_404 : Action {
$c->response->body('Page not found');
}
+__PACKAGE__->config(
+ default => 'text/html',
+ map => {
+ 'text/html' => [qw/ View Default /],
+ 'application/json' => [qw/ JSON /],
+ }
+);
+
__PACKAGE__->meta->make_immutable;
__END__