Expose serialization via JSON.
authorDan Brook <broq@cpan.org>
Sat, 7 May 2011 17:02:57 +0000 (18:02 +0100)
committerDan Brook <broq@cpan.org>
Mon, 23 May 2011 13:55:01 +0000 (15:55 +0200)
commitf41fc74106e51d8055871cacdc1459be4f61f980
tree56dfd8d9d64639fe2930ea9a61a3fd40acfefa67
parent1aae440e61b68d1f703a63ead38411f5bb428062
Expose serialization via JSON.

The last of Tom's work is now integrated with all URLs that can will
respond with JSON. Unfortuantely browsers (I'm looking at you Chrome)
will cache per URL rather than URL + Content-Type so if one requests
JSON for /repo/sha1/commit then navigates to said commit the browser
will served the cached JSON rather than HTML. As such JSON is also
exposed with the .json extension allowing JS to talk JSON without
messing up certain browsers' (i.e Chrome's) caching.
Makefile.PL
lib/Gitalist.pm
lib/Gitalist/Controller/Root.pm