From 0788be127bb1ac8d4349e7ca8312574bbcf5ce11 Mon Sep 17 00:00:00 2001 From: Lukas Ehnle Date: Sun, 22 Mar 2020 20:33:46 +0100 Subject: [PATCH] fix: dynamic baseUrl for api --- frontend/src/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/api.js b/frontend/src/api.js index 648c8a6..8dae6f2 100644 --- a/frontend/src/api.js +++ b/frontend/src/api.js @@ -1,6 +1,6 @@ import deepmerge from "deepmerge"; import { store } from "@/store"; -const baseUrl = /*"https://vision.owlabout.de/api";*/ 'http://localhost:9000/api/' +const baseUrl = window.location.origin + "/api/"; function base(path, options = {}) { return fetch(