From 8140244754623c23dc575a6889420430192da04a Mon Sep 17 00:00:00 2001 From: ixhbinphoenix Date: Sun, 10 Dec 2023 19:45:58 +0100 Subject: [PATCH] fix: Quickly change the API url to prod --- frontend/src/api/frontmatter.ts | 4 ++-- frontend/src/api/theBackend.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/api/frontmatter.ts b/frontend/src/api/frontmatter.ts index 240328e..c9f7c6b 100644 --- a/frontend/src/api/frontmatter.ts +++ b/frontend/src/api/frontmatter.ts @@ -5,7 +5,7 @@ class Request { public static async Post(path: string, data?: object): Promise { try { - let result = await fetch("https://localhost:8080/" + path, { + let result = await fetch("https://api.theschedule.de/" + path, { method: "POST", headers: { "Content-Type": "application/json" @@ -28,7 +28,7 @@ class Request { } public static async Get(path: string, headers?: HeadersInit): Promise { try { - let result = await fetch("https://127.0.0.1:8080/" + path, { + let result = await fetch("https://api.theschedule.de/" + path, { headers, method: "GET", credentials: "include" diff --git a/frontend/src/api/theBackend.ts b/frontend/src/api/theBackend.ts index bfb92d8..bac330a 100644 --- a/frontend/src/api/theBackend.ts +++ b/frontend/src/api/theBackend.ts @@ -6,7 +6,7 @@ class Request { public static async Post(path: string, data?: object): Promise { try { - let result = await fetch("https://localhost:8080/" + path, { + let result = await fetch("https://api.theschedule.de" + path, { method: "POST", headers: { "Content-Type": "application/json" @@ -29,7 +29,7 @@ class Request { } public static async Get(path: string, headers?: HeadersInit): Promise { try { - let result = await fetch("https://localhost:8080/" + path, { + let result = await fetch("https://api.theschedule.de" + path, { headers, method: "GET", credentials: "include"