changed url
This commit is contained in:
@@ -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: {
|
||||
|
Reference in New Issue
Block a user