generishce editElement funktion implementiert
This commit is contained in:
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" }
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user