From 86ab4460149e06b07d3acfbf63be2ed3e277dcf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=20Germ=C3=A1n=20Mart=C3=ADnez?= Date: Thu, 1 Feb 2024 22:11:04 -0300 Subject: [PATCH] Update README.md Add () in the end of line 8 to a request.json --- .learn/exercises/07.1-test-post-todo/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.learn/exercises/07.1-test-post-todo/README.md b/.learn/exercises/07.1-test-post-todo/README.md index 02a5bdc1..3b9fdb50 100644 --- a/.learn/exercises/07.1-test-post-todo/README.md +++ b/.learn/exercises/07.1-test-post-todo/README.md @@ -5,7 +5,7 @@ This is what you should have so far for the `POST /todos` endpoint. Take some ti ```python @app.route('/todos', methods=['POST']) def add_new_todo(): - request_body = request.json + request_body = request.json() print("Incoming request with the following body", request_body) return 'Response for the POST todo' ```