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")