Spaces:
Sleeping
Sleeping
Update src/routers/tasks.py
Browse files- src/routers/tasks.py +1 -1
src/routers/tasks.py
CHANGED
|
@@ -183,7 +183,7 @@ def list_tasks(
|
|
| 183 |
)
|
| 184 |
|
| 185 |
|
| 186 |
-
@router.post("
|
| 187 |
def create_task(
|
| 188 |
user_id: UUID,
|
| 189 |
task_data: TaskCreate,
|
|
|
|
| 183 |
)
|
| 184 |
|
| 185 |
|
| 186 |
+
@router.post("", response_model=TaskRead, status_code=status.HTTP_201_CREATED)
|
| 187 |
def create_task(
|
| 188 |
user_id: UUID,
|
| 189 |
task_data: TaskCreate,
|