This commit is contained in:
Technoir committed 2026-10-15 13:21:10 +02:00
1 parent 607db109b6
commit 5783814697
1 file changed
+1 -8
@@ -1,23 +1,16 @@
export function addList(listName) {
return fetch(`/api/lists`,
{
method: "POST",
body: JSON.stringify({ listName: listName }),
headers: { "Content-Type": "application/json" }
}
);
});
}
export function deleteList(id) {
return fetch(`/api/lists/${id}`, { method: "DELETE" });
}
export function editList(listID, toChange) {
return fetch(`/api/lists/${listID}`,
{