From f6ad485262f706117073b16bfc21661a269fa4dd Mon Sep 17 00:00:00 2001 From: unurled Date: Wed, 18 May 2022 09:00:45 +0200 Subject: [PATCH] bug fix --- src/public/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/public/main.js b/src/public/main.js index 60e775c..bdf8af8 100644 --- a/src/public/main.js +++ b/src/public/main.js @@ -10,7 +10,7 @@ async function save(e, btn) { const headers = buildHeaders(); const jsonFileData = buildJsonFormData(textarea); - const response = await fetchService.performPostHttpRequest('http://localhost:3000/api/post', headers, jsonFileData); + const response = await fetchService.performPostHttpRequest(window.location.href + 'api/post', headers, jsonFileData); } function buildHeaders(authorization = null) {