dateien hinzugefügt

This commit is contained in:
Technoir committed 2026-10-09 21:00:43 +02:00
1 parent 4d69c8167a
commit 9361de6cb0
2 files changed
+21

No files matched your search

@@ -0,0 +1,21 @@
export async function addList(listName) {
const response = await fetch(`/api/list`,
{
method: "POST",
body: JSON.stringify({ listName: listName }),
headers: { "Content-Type": "application/json" }
}
);
return response;
}
export async function deleteList(id) {
const response = await fetch(`/api/list/${id}`, { method: "DELETE" })
.then(r => console.log("Liste entfernt"))
return response;
}
Whitespace-only changes.