WIP настроил сохранение данных аддреса, добавил блок детальной информации Документов

This commit is contained in:
DwCay
2022-11-03 20:03:21 +03:00
parent 0786baee42
commit 2a65bbdb2a
17 changed files with 115 additions and 116 deletions

View File

@@ -1,6 +1,6 @@
function prepareUrl(url) {
if (url.startsWith("http")) return url;
return `http://45.84.227.122:8080/${url}`;
return `http://45.84.227.122:8080/api/${url}`;
}
function handleRequest(method, url, headers, attempts, body) {
@@ -63,7 +63,7 @@ function del(url, headers, attempts = 3) {
}
function post(url, body, headers, attempts = 3) {
return handleRequest("POST", url, headers, attempts, null, body);
return handleRequest("POST", url, headers, attempts, body);
}
function put(url, headers, body, attempts = 3) {