bozo-backend/panel.py

10 lines
258 B
Python
Raw Permalink Normal View History

2023-06-08 16:33:41 -04:00
import flask
page = flask.Blueprint("panel", __name__, template_folder="templates")
@page.route("/panel")
def show():
2023-06-09 09:22:50 -04:00
if (not flask.session.get("email")):
return (flask.redirect("/login"))
2023-06-08 16:33:41 -04:00
return (flask.render_template("panel/panel.html"))