diff --git a/frontend/src/api.ts b/frontend/src/api.ts index a978ce7..6c423c0 100644 --- a/frontend/src/api.ts +++ b/frontend/src/api.ts @@ -50,6 +50,11 @@ export async function updateItemName(itemId: string, name: string): Promise { + const res = await fetch(`${API_BASE}/items/${itemId}`, { method: "DELETE" }); + if (!res.ok) throw new Error("Failed to delete item"); +} + export async function deleteItemTag(itemId: string, tagId: string): Promise { const res = await fetch(`${API_BASE}/items/${itemId}/tags/${tagId}`, { method: "DELETE",