generishce editElement funktion implementiert

This commit is contained in:
Technoir committed 2026-10-14 19:54:35 +02:00
1 parent f33b979bcb
commit 1dd335e166
1 file changed
+8
@@ -0,0 +1,8 @@
export async function editElement(apiPath, toChange) {
return await fetch(apiPath,
{
method: "PATCH",
body: JSON.stringify(toChange),
headers: { "Content-Type": "application/json" }
});
}