From 1b15cf96e82bbe5ec306872dececcbd84dd3ac3c Mon Sep 17 00:00:00 2001 From: Theis Gaedigk Date: Thu, 28 Aug 2025 21:38:17 +0200 Subject: [PATCH] changed url --- frontend/src/utils/userHandler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/utils/userHandler.ts b/frontend/src/utils/userHandler.ts index e2640f9..aeee6cc 100644 --- a/frontend/src/utils/userHandler.ts +++ b/frontend/src/utils/userHandler.ts @@ -106,7 +106,7 @@ export const createLoan = async (startDate: string, endDate: string) => { export const onReturn = async (loanID: number) => { const response = await fetch( - `https://backend.insta.the1s.de/returnLoan/${loanID}`, + `https://backend.insta.the1s.de/api/returnLoan/${loanID}`, { method: "POST", headers: { @@ -126,7 +126,7 @@ export const onReturn = async (loanID: number) => { export const onTake = async (loanID: number) => { const response = await fetch( - `https://backend.insta.the1s.de/takeLoan/${loanID}`, + `https://backend.insta.the1s.de/api/takeLoan/${loanID}`, { method: "POST", headers: {