husstanden/routes.py
2019-04-25 21:17:26 +01:00

17 lines
448 B
Python

from flask import render_template, url_for, request
from objects import glob # Global sharing of python objects in a manageable way
@glob.app.route("/")
@glob.app.route("/home")
@glob.app.route("/dashboard")
def home():
return render_template("pages/dashboard.html")
@glob.app.route("/login", methods = ["GET", "POST"])
def serve_login():
if request.method == "POST":
return "TODO: Login handle", 501
return render_template("login.html")