@app.get('/todoer/v1/tasks', status_code=200)
async def root(request: Request, database=Depends(get_database), pagination: Tuple[(int, int)]=Depends(pagination)) -> dict:
    '\n    GET tasks as html page\n    '
    tasks = (await database.get_all(*pagination))
    return TEMPLATES.TemplateResponse('index.html', {'request': request, 'tasks': tasks})
GET tasks as html page
@app.get('/todoer/v1/tasks', status_code=200)
async def root(request: Request, database=Depends(get_database), pagination: Tuple[(int, int)]=Depends(pagination)) -> dict:
    '\n    \n    '
    tasks = (await database.get_all(*pagination))
    return TEMPLATES.TemplateResponse('index.html', {'request': request, 'tasks': tasks})