Changed api url and api docs description
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2023-03-20 23:37:49 +01:00
parent df6f17ed76
commit 1188b6c46a
2 changed files with 2 additions and 2 deletions

View File

@@ -487,7 +487,7 @@ function translate() {
document.getElementById("received_text").value = JSON.parse(xhttp.responseText).response_text
}
};
xhttp.open("POST", "http://127.0.0.1:5000/translate", true);
xhttp.open("POST", "/api/translate", true);
xhttp.setRequestHeader("Content-Type", "application/json");
xhttp.send(JSON.stringify(data));
}