We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 272ee27 commit 58a25bcCopy full SHA for 58a25bc
ch03/todos/todo.py
@@ -6,7 +6,7 @@
6
todo_list = []
7
8
9
-@todo_router.post("/todo")
+@todo_router.post("/todo", status_code=201)
10
async def add_todo(todo: Todo):
11
todo_list.append(todo)
12
return {
0 commit comments