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) {