File size: 355 Bytes
bfc0ec6
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""Router for tasks."""

from fastapi import APIRouter

from .router_utils import RouteErrorHandler
from .tasks import TaskManifest, task_manager

router = APIRouter(route_class=RouteErrorHandler)


@router.get('/')
async def get_task_manifest() -> TaskManifest:
  """Get the tasks, both completed and pending."""
  return await task_manager().manifest()