fix create form and fix origin

This commit is contained in:
kandrusyak
2023-09-04 21:02:44 +03:00
parent 66efe5bc95
commit dc65af6c83

View File

@@ -5,7 +5,7 @@ const getOrigin = () =>
function prepareUrl(url) {
if (url.startsWith("http")) return url;
return `${getOrigin}/api/${url}`;
return `${getOrigin()}/api/${url}`;
}
function handleRequest(method, url, headers, attempts, body, type) {