Skip to content

Commit 58a25bc

Browse files
authored
Update todo.py
1 parent 272ee27 commit 58a25bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ch03/todos/todo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
todo_list = []
77

88

9-
@todo_router.post("/todo")
9+
@todo_router.post("/todo", status_code=201)
1010
async def add_todo(todo: Todo):
1111
todo_list.append(todo)
1212
return {

0 commit comments

Comments
 (0)