paste.sr.ht/pastesrht/blueprints/public.py

11 lines
266 B
Python

from flask import Blueprint, render_template
from flask_login import current_user
public = Blueprint("public", __name__)
@public.route("/")
def index():
if current_user:
return render_template("dashboard.html")
return render_template("index.html")