from fastapi import BackgroundTasks, APIRouter router = APIRouter() async def some_task(): asyncio.sleep(2) return @router.post("/test-endpoint") async def ...
確定! 回上一頁