updated base.html to have a appropriate navbar, use Status class and a quick test route in main

This commit is contained in:
2021-01-10 12:07:50 +11:00
parent 446e9cf07a
commit 7a0d9ec165
2 changed files with 88 additions and 9 deletions

View File

@@ -26,9 +26,13 @@ db = SQLAlchemy(app)
ma = Marshmallow(app)
Bootstrap(app)
@app.route("/test", methods=["GET"])
def test():
return render_template("base.html", alert=st.GetAlert(), message=st.GetMessage())
@app.route("/", methods=["GET"])
def main_page():
return render_template("base.html")
return render_template("base.html", alert=st.GetAlert(), message=st.GetMessage())
if __name__ == "__main__":
if hostname == PROD_HOST: