Beginnings of administrative API.

The "stats.json" file is moved under "galene-api", where the rest
of the API will live.
This commit is contained in:
Juliusz Chroboczek
2024-01-04 19:47:12 +01:00
parent d887a216f0
commit b7094fc373
3 changed files with 59 additions and 35 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ async function listStats() {
let l;
try {
let r = await fetch('/stats.json');
let r = await fetch('/galene-api/.stats');
if(!r.ok)
throw new Error(`${r.status} ${r.statusText}`);
l = await r.json();