changed links for hosting

This commit is contained in:
2025-09-02 20:34:20 +02:00
parent ba0f06e104
commit af4abfc8f9
7 changed files with 13 additions and 13 deletions

View File

@@ -103,7 +103,7 @@ export const createLoan = async (startDate: string, endDate: string) => {
export const onReturn = async (loanID: number) => {
const response = await fetch(
`http://localhost:8002/api/returnLoan/${loanID}`,
`https://backend.insta.the1s.de/api/returnLoan/${loanID}`,
{
method: "POST",
headers: {
@@ -122,7 +122,7 @@ export const onReturn = async (loanID: number) => {
};
export const onTake = async (loanID: number) => {
const response = await fetch(`http://localhost:8002/api/takeLoan/${loanID}`, {
const response = await fetch(`https://backend.insta.the1s.de/api/takeLoan/${loanID}`, {
method: "POST",
headers: {
Authorization: `Bearer ${Cookies.get("token") || ""}`,