From 1f38d6cdc17eb3c1adab7e6c492cb699c6fea2af Mon Sep 17 00:00:00 2001 From: leonard Date: Mon, 11 Dec 2023 11:01:01 +0100 Subject: [PATCH] =?UTF-8?q?d=C3=A9finir=20explicitement=20la=20variable=20?= =?UTF-8?q?root=5Fpath=20en=20attendant=20de=20comprendre=20pourquoi=20uni?= =?UTF-8?q?vorn=20ne=20le=20fait=20pas=20tout=20seul?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/conf/__init__.py b/conf/__init__.py index 5703e85..4b9b58c 100644 --- a/conf/__init__.py +++ b/conf/__init__.py @@ -5,8 +5,7 @@ from fastapi import FastAPI UVICORN_ROOT_PATH = os.environ.get('UVICORN_ROOT_PATH') -#app = FastAPI(root_path=UVICORN_ROOT_PATH) -app = FastAPI() +app = FastAPI(root_path=UVICORN_ROOT_PATH) @app.get("/") def read_root():