Spaces:
Runtime error
Runtime error
"""Router for tasks.""" | |
from fastapi import APIRouter | |
from .router_utils import RouteErrorHandler | |
from .tasks import TaskManifest, task_manager | |
router = APIRouter(route_class=RouteErrorHandler) | |
async def get_task_manifest() -> TaskManifest: | |
"""Get the tasks, both completed and pending.""" | |
return await task_manager().manifest() | |