fix: use lifespan init

This commit is contained in:
frudder
2025-03-27 17:02:24 +08:00
parent c7232b7a4a
commit 2536c5697a

1
api.py
View File

@@ -65,6 +65,7 @@ app = FastAPI(
version="1.0.0",
docs_url="/docs",
redoc_url="/redoc",
lifespan=lifespan,
debug=API_DEBUG,
)