From 938e9000f85dffdd6a34dc4333c82144c3dc669a Mon Sep 17 00:00:00 2001 From: Theis Gaedigk Date: Tue, 16 Sep 2025 11:26:31 +0200 Subject: [PATCH] chnaged port config --- admin/src/utils/userActions.ts | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/admin/src/utils/userActions.ts b/admin/src/utils/userActions.ts index 9812e4a..5a9b4c2 100644 --- a/admin/src/utils/userActions.ts +++ b/admin/src/utils/userActions.ts @@ -172,14 +172,17 @@ export const handleEditItems = async ( can_borrow_role: string ) => { try { - const response = await fetch("http://localhost:8002/api/updateItemByID", { - method: "POST", - headers: { - "Content-Type": "application/json", - Authorization: `Bearer ${Cookies.get("token")}`, - }, - body: JSON.stringify({ itemId, item_name, can_borrow_role }), - }); + const response = await fetch( + "https://backend.insta.the1s.de/api/updateItemByID", + { + method: "POST", + headers: { + "Content-Type": "application/json", + Authorization: `Bearer ${Cookies.get("token")}`, + }, + body: JSON.stringify({ itemId, item_name, can_borrow_role }), + } + ); if (!response.ok) { throw new Error("Failed to edit item"); }