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

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

View File

@ -8,7 +8,7 @@ from routes.admin import router as AdminRouter
from config import Settings
app = FastAPI(title="Translator",
description="Cloud Computing II",
description="DHBW Cloud Computing II",
version="1.0.0",
docs_url='/api/docs',
redoc_url='/api/redoc',

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));
}