Add base path

This commit is contained in:
2026-06-23 22:13:38 +02:00
parent e042943bd3
commit 5bdc37ebcf
6 changed files with 18 additions and 11 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
import os
from fastapi import FastAPI
from contextlib import asynccontextmanager
from fastapi.middleware.cors import CORSMiddleware
@@ -12,7 +13,7 @@ async def lifespan(app: FastAPI):
yield
app = FastAPI(lifespan=lifespan)
app = FastAPI(lifespan=lifespan, root_path=os.getenv("ROOT_PATH", ""))
# CORS middleware
app.add_middleware(