Update __init__.py
This commit is contained in:
parent
db3187fd7a
commit
727cd8fb71
1 changed files with 2 additions and 2 deletions
|
|
@ -3,12 +3,12 @@ from flask import render_template
|
|||
|
||||
frontend = Blueprint("frontend", __name__, template_folder="templates")
|
||||
|
||||
|
||||
#Returns "index.html" from the frontend folder when "/" accessed by the user
|
||||
@frontend.route("/")
|
||||
def index():
|
||||
return render_template("frontend/index.html")
|
||||
|
||||
|
||||
#Returns "missing_template.html" when "/missing" is accessed by the user
|
||||
@frontend.route("/missing")
|
||||
def missing_template():
|
||||
return render_template("missing_template.html")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue