Add NAS dashboard MVP: Docker mgmt, Gitea, Files, Terminal

This commit is contained in:
Gan, Jimmy
2026-02-19 01:59:50 +08:00
parent d85b290c33
commit 70aa421d7f
29 changed files with 2665 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
const BASE = "/api";
export async function get(path) {
const r = await fetch(BASE + path);
return r.json();
}
export async function post(path) {
const r = await fetch(BASE + path, { method: "POST" });
return r.json();
}
export async function del(path) {
const r = await fetch(BASE + path, { method: "DELETE" });
return r.json();
}