Skip to content

Commit

Permalink
Update views.py
Browse files Browse the repository at this point in the history
adding in option for hello route so that "Name" is not required.
  • Loading branch information
TimPreble authored Dec 29, 2018
1 parent 4a221ac commit 3546f38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hello_app/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ def about():
def contact():
return render_template("contact.html")

@app.route("/hello")
@app.route("/hello/<name>")
def hello_there(name):
def hello_there(name = None):
return render_template(
"hello_there.html",
name=name,
Expand Down

0 comments on commit 3546f38

Please sign in to comment.