Spaces:
Sleeping
Sleeping
Update src/routers/tasks.py
Browse files- src/routers/tasks.py +1 -1
src/routers/tasks.py
CHANGED
|
@@ -77,7 +77,7 @@ def list_tasks(
|
|
| 77 |
)
|
| 78 |
|
| 79 |
|
| 80 |
-
@router.post("
|
| 81 |
def create_task(
|
| 82 |
user_id: UUID,
|
| 83 |
task_data: TaskCreate,
|
|
|
|
| 77 |
)
|
| 78 |
|
| 79 |
|
| 80 |
+
@router.post("", response_model=TaskRead, status_code=status.HTTP_201_CREATED)
|
| 81 |
def create_task(
|
| 82 |
user_id: UUID,
|
| 83 |
task_data: TaskCreate,
|