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/<repo>', function(data) {
    showRepo(data);
});
-----------------------------------------------

By loading https://
<server>/git/<what-I-need>/<parameter-1>/<parameter-2>/<etc.>
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
_______________________________________________
CGit mailing list
CGit@lists.zx2c4.com
http://lists.zx2c4.com/mailman/listinfo/cgit

Reply via email to