(email: str, background_tasks: BackgroundTasks)
| 11 | |
| 12 | @app.post("/send-notification/{email}") |
| 13 | async def send_notification(email: str, background_tasks: BackgroundTasks): |
| 14 | background_tasks.add_task(write_notification, email, message="some notification") |
| 15 | return {"message": "Notification sent in the background"} |
nothing calls this directly
no test coverage detected
searching dependent graphs…