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:
parent
df6f17ed76
commit
1188b6c46a
@ -8,7 +8,7 @@ from routes.admin import router as AdminRouter
|
|||||||
from config import Settings
|
from config import Settings
|
||||||
|
|
||||||
app = FastAPI(title="Translator",
|
app = FastAPI(title="Translator",
|
||||||
description="Cloud Computing II",
|
description="DHBW Cloud Computing II",
|
||||||
version="1.0.0",
|
version="1.0.0",
|
||||||
docs_url='/api/docs',
|
docs_url='/api/docs',
|
||||||
redoc_url='/api/redoc',
|
redoc_url='/api/redoc',
|
||||||
|
@ -487,7 +487,7 @@ function translate() {
|
|||||||
document.getElementById("received_text").value = JSON.parse(xhttp.responseText).response_text
|
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.setRequestHeader("Content-Type", "application/json");
|
||||||
xhttp.send(JSON.stringify(data));
|
xhttp.send(JSON.stringify(data));
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user