Skip to content

Commit 86ab446

Browse files
authored
Update README.md
Add () in the end of line 8 to a request.json
1 parent c7f4571 commit 86ab446

File tree

1 file changed

+1
-1
lines changed
  • .learn/exercises/07.1-test-post-todo

1 file changed

+1
-1
lines changed

.learn/exercises/07.1-test-post-todo/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This is what you should have so far for the `POST /todos` endpoint. Take some ti
55
```python
66
@app.route('/todos', methods=['POST'])
77
def add_new_todo():
8-
request_body = request.json
8+
request_body = request.json()
99
print("Incoming request with the following body", request_body)
1010
return 'Response for the POST todo'
1111
```

0 commit comments

Comments
 (0)