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")
|
frontend = Blueprint("frontend", __name__, template_folder="templates")
|
||||||
|
|
||||||
|
#Returns "index.html" from the frontend folder when "/" accessed by the user
|
||||||
@frontend.route("/")
|
@frontend.route("/")
|
||||||
def index():
|
def index():
|
||||||
return render_template("frontend/index.html")
|
return render_template("frontend/index.html")
|
||||||
|
|
||||||
|
#Returns "missing_template.html" when "/missing" is accessed by the user
|
||||||
@frontend.route("/missing")
|
@frontend.route("/missing")
|
||||||
def missing_template():
|
def missing_template():
|
||||||
return render_template("missing_template.html")
|
return render_template("missing_template.html")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue