Merge branch 'master' of https://git.unurled.gq/unurled/text-display
This commit is contained in:
commit
d625ced9b1
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ async function save(e, btn) {
|
||||||
const headers = buildHeaders();
|
const headers = buildHeaders();
|
||||||
const jsonFileData = buildJsonFormData(textarea);
|
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) {
|
function buildHeaders(authorization = null) {
|
||||||
|
|
Loading…
Reference in a new issue