FastAPI - Middleware and Hooks
Why does this FastAPI startup event handler fail?
from fastapi import FastAPI
app = FastAPI()
@app.on_event("startup")
def startup():
import asyncio
asyncio.run(init_db())