Skip to content

Commit 3a30e45

Browse files
committed
refactor(api-server): remove unused lifespan
1 parent 099f824 commit 3a30e45

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

backend/api/main.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
1-
from contextlib import asynccontextmanager
2-
31
from fastapi import FastAPI
42

53
from api.routers import llms, mcps
64

7-
8-
@asynccontextmanager
9-
async def lifespan(app: FastAPI):
10-
yield
11-
12-
13-
app = FastAPI(
14-
lifespan=lifespan, swagger_ui_parameters={"tryItOutEnabled": True}
15-
)
5+
app = FastAPI(swagger_ui_parameters={"tryItOutEnabled": True})
166
app.include_router(llms.router, prefix="/v1")
177
app.include_router(mcps.router, prefix="/v1")

0 commit comments

Comments
 (0)