Skip to content

Commit 39e5aae

Browse files
authored
Update README.md
1 parent 1283748 commit 39e5aae

File tree

1 file changed

+2
-2
lines changed
  • .learn/exercises/03.3-your-first-route

1 file changed

+2
-2
lines changed

.learn/exercises/03.3-your-first-route/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Since Flask is a server, it only makes sense to add some URLs to expose over the internet, for example: `mydomain.com/hello`
44

5-
As a developer, if we would like people to visit `http://mydomain.com/hello` and show a message like `Hello World` to those people, we have to add the following endpoint inside our `app.py` file:
5+
As a developer, if we would like people to visit `http://mydomain.com/myroute` and show a message like `Hello World!` to those people, we have to add the following endpoint inside our `app.py` file:
66

77
```python
88
@app.route('/myroute', methods=['GET'])
@@ -16,7 +16,7 @@ def hello_world():
1616

1717
+ The second line defines a function that will be called by Flask when that endpoint is called by the user (when the user requests `/myroute`).
1818

19-
+ The third line defines our function execution and in this case, returns the text "Hello World!" to the requesting client or browser.
19+
+ The third line defines our function execution and in this case, returns the text `"Hello World!"` to the requesting client or browser.
2020

2121
## 📝 Instructions:
2222

0 commit comments

Comments
 (0)