Changed api url and api docs description
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -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));
|
||||
}
|
Reference in New Issue
Block a user