bug fix
This commit is contained in:
parent
5c29ebd821
commit
f6ad485262
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue