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") def home(): return render_template("home.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") @glob.app.route("/testing") def we_are_testing(): return render_template("testing.html") @glob.app.route("/bill") def serve_bill(): return render_template("bill.html") @glob.app.route("/regninger") def serve_regninger(): return render_template("regninger.html") @glob.app.route("/kvittering") def serve_kvittering(): return render_template("kvittering.html")