@app.delete('/todoer/api/v1/tasks/{task_key}', status_code=204)
async def del_task(task_key: str, database=Depends(get_database)) -> None:
    try:
        logger.info(f'request to delete task: {task_key}')
        (await database.delete(task_key))
    except DataLayerException:
        raise HTTPException(status_code=404, detail=f'Delete task {task_key} not found')
@app.delete('/todoer/api/v1/tasks/{task_key}', status_code=204)
async def del_task(task_key: str, database=Depends(get_database)) -> None:
    try:
        logger.info(f'request to delete task: {task_key}')
        (await database.delete(task_key))
    except DataLayerException:
        raise HTTPException(status_code=404, detail=f'Delete task {task_key} not found')