Files
Comparison_Project/app/routes/dashboard.py

12 lines
338 B
Python

from flask import Blueprint, render_template, session, redirect, url_for
dashboard_bp = Blueprint("dashboard", __name__, url_prefix="/dashboard")
@dashboard_bp.route("/")
def dashboard():
if not session.get("user_id"):
return redirect(url_for("auth.login"))
return render_template("dashboard.html", title="Dashboard")