Skip to content
This repository was archived by the owner on Nov 13, 2023. It is now read-only.

Commit 6575d37

Browse files
author
Adam
committed
Add variable routes
1 parent e1be601 commit 6575d37

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,9 @@
55
def hello_world():
66
return 'Hello World!'
77

8+
@app.route('/hello/<noun>')
9+
def hello_noun(noun):
10+
return 'Hello %s!' % noun
11+
812
if __name__ == '__main__':
913
app.run(debug=True)

0 commit comments

Comments
 (0)