Skip to content

Commit

Permalink
fix: remove problematic root_path (#434)
Browse files Browse the repository at this point in the history
  • Loading branch information
masci authored Jan 21, 2025
1 parent 3fcde41 commit d40421f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions llama_deploy/apiserver/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
import os

from fastapi import FastAPI
from fastapi.responses import JSONResponse
from fastapi.middleware.cors import CORSMiddleware
from fastapi.responses import JSONResponse

from .routers import status_router, deployments_router
from .routers import deployments_router, status_router
from .server import lifespan

logger = logging.getLogger("uvicorn.info")


app = FastAPI(root_path="/", lifespan=lifespan)
app = FastAPI(lifespan=lifespan)

# Configure CORS middleware if the environment variable is set
if not os.environ.get("DISABLE_CORS", False):
Expand Down

0 comments on commit d40421f

Please sign in to comment.