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:
parent
411531f12d
commit
1f38d6cdc1
1 changed files with 1 additions and 2 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Reference in a new issue