Add NAS dashboard MVP: Docker mgmt, Gitea, Files, Terminal
This commit is contained in:
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user