Startup box improvements.

This commit is contained in:
2026-09-13 06:04:10 +00:00
parent ab2d721723
commit baab37ae2d
2 changed files with 37 additions and 12 deletions
+2
View File
@@ -21,11 +21,13 @@ from fastapi_vue import Frontend
frontend = Frontend(Path(__file__).with_name("frontend-build"), spa=True)
@asynccontextmanager
async def lifespan(app: FastAPI):
await frontend.load()
yield
app = FastAPI(lifespan=lifespan)
# Add API routes here...