1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/FastAPI_ynh.git synced 2024-09-03 18:36:00 +02:00

définir explicitement la variable root_path en attendant de comprendre pourquoi univorn ne le fait pas tout seul

This commit is contained in:
leonard 2023-12-11 11:01:01 +01:00
parent 411531f12d
commit 1f38d6cdc1

View file

@ -5,8 +5,7 @@ from fastapi import FastAPI
UVICORN_ROOT_PATH = os.environ.get('UVICORN_ROOT_PATH') UVICORN_ROOT_PATH = os.environ.get('UVICORN_ROOT_PATH')
#app = FastAPI(root_path=UVICORN_ROOT_PATH) app = FastAPI(root_path=UVICORN_ROOT_PATH)
app = FastAPI()
@app.get("/") @app.get("/")
def read_root(): def read_root():