From mboxrd@z Thu Jan 1 00:00:00 1970 From: wilhelm.matilainen at gmail.com (Wilhelm Matilainen) Date: Sun, 5 Oct 2014 14:13:35 +0300 Subject: Fwd: JSON interface In-Reply-To: References: Message-ID: Instead of acting as a server providing html and css files, could there be a only-json option? I could then provide all the static files minified and cached from a proper http server already in use and request only the data from cgit. Using jquery: ----------------------------------------------- $.getJSON('/git/repository/', function(data) { showRepo(data); }); ----------------------------------------------- By loading https:// /git//// CGit would output something like: ----------------------------------------------- { "repository": "test", "property1": "value1", "property2": "value2" } ----------------------------------------------- It's not fun at all to operate multiple http servers all with their own options. Wilhelm Matilainen -------------- next part -------------- An HTML attachment was scrubbed... URL: