From e7f4cc2d56fe83e629166795db432ea203e635fd Mon Sep 17 00:00:00 2001 From: Emile Nijssen Date: Sun, 12 Jun 2022 22:10:50 +0200 Subject: [PATCH] use relative paths --- src/www/js/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/www/js/api.js b/src/www/js/api.js index accbb57..84885f1 100644 --- a/src/www/js/api.js +++ b/src/www/js/api.js @@ -6,7 +6,7 @@ class API { async call({ method, path, body }) { - const res = await fetch(`/api${path}`, { + const res = await fetch(`./api${path}`, { method, headers: { 'Content-Type': 'application/json',