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) => {
|
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: {
|
||||||
|
Reference in New Issue
Block a user