Update __init__.py

This commit is contained in:
Liam 2022-06-10 00:23:04 -07:00 committed by GitHub
parent db3187fd7a
commit 727cd8fb71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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")