changed url

This commit is contained in:
2025-08-28 21:38:17 +02:00
parent bb7f66ecc7
commit 1b15cf96e8

View File

@@ -106,7 +106,7 @@ export const createLoan = async (startDate: string, endDate: string) => {
export const onReturn = async (loanID: number) => { export const onReturn = async (loanID: number) => {
const response = await fetch( const response = await fetch(
`https://backend.insta.the1s.de/returnLoan/${loanID}`, `https://backend.insta.the1s.de/api/returnLoan/${loanID}`,
{ {
method: "POST", method: "POST",
headers: { headers: {
@@ -126,7 +126,7 @@ export const onReturn = async (loanID: number) => {
export const onTake = async (loanID: number) => { export const onTake = async (loanID: number) => {
const response = await fetch( const response = await fetch(
`https://backend.insta.the1s.de/takeLoan/${loanID}`, `https://backend.insta.the1s.de/api/takeLoan/${loanID}`,
{ {
method: "POST", method: "POST",
headers: { headers: {