From 578381469709b2e7a5b3bcfacb8356a910efe9b4 Mon Sep 17 00:00:00 2001 From: Tim Aldinger Date: Thu, 15 Oct 2026 13:21:10 +0200 Subject: [PATCH] wsp --- src/main/resources/static/js/pages/index/api/indexAPI.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/main/resources/static/js/pages/index/api/indexAPI.js b/src/main/resources/static/js/pages/index/api/indexAPI.js index 77676e0..737d801 100644 --- a/src/main/resources/static/js/pages/index/api/indexAPI.js +++ b/src/main/resources/static/js/pages/index/api/indexAPI.js @@ -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}`, {