(username: str)
| 90 | |
| 91 | @app.get('/status/{username}') |
| 92 | async def check_status(username: str): |
| 93 | # Check if the handler exists and retrieve its status |
| 94 | if username in handlers: |
| 95 | status = await handlers[username].status() # Note: status() is an async function |
| 96 | return {"running": status["is_running"]} # Make sure to return running status |
| 97 | return {"running": False} |
| 98 | |
| 99 | |
| 100 | # Include file router |