From 1188b6c46aa96e6ed7c80296780370fe36aefdc3 Mon Sep 17 00:00:00 2001 From: H4CK3R-01 Date: Mon, 20 Mar 2023 23:37:49 +0100 Subject: [PATCH] Changed api url and api docs description --- backend/app.py | 2 +- frontend/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app.py b/backend/app.py index 4d33147..ccff46c 100644 --- a/backend/app.py +++ b/backend/app.py @@ -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', diff --git a/frontend/index.js b/frontend/index.js index 755801c..e1f937f 100644 --- a/frontend/index.js +++ b/frontend/index.js @@ -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)); } \ No newline at end of file