This commit is contained in:
unurled 2022-05-18 14:11:37 +02:00
commit d625ced9b1

View file

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