diff --git a/backend/routers/task/router.py b/backend/routers/task/router.py index c6712b2..317c538 100644 --- a/backend/routers/task/router.py +++ b/backend/routers/task/router.py @@ -24,22 +24,6 @@ task_router = APIRouter(prefix="/task", tags=["Tasks"]) -@task_router.get( - "/all", - response_model=TasksResult, - status_code=status.HTTP_200_OK, - summary="Retrieve All Task Statuses", - description="Retrieve the statuses of all tasks available in the system.", -) -async def get_all_tasks_status( - session: Session = Depends(get_db_session), -) -> TasksResult: - """ - Retrieve all tasks. - """ - return get_all_tasks_status_from_db(session=session) - - @task_router.get( "/{identifier}", response_model=Task, @@ -127,3 +111,19 @@ async def delete_task( return Response(identifier=identifier, message="Task deleted") else: raise HTTPException(status_code=404, detail="Task not found") + + +# @task_router.get( +# "/all", +# response_model=TasksResult, +# status_code=status.HTTP_200_OK, +# summary="Retrieve All Task Statuses", +# description="Retrieve the statuses of all tasks available in the system.", +# ) +async def get_all_tasks_status( + session: Session = Depends(get_db_session), +) -> TasksResult: + """ + Retrieve all tasks. + """ + return get_all_tasks_status_from_db(session=session) \ No newline at end of file