2026-01-10 16:49:46 +05:30
|
|
|
|
|
|
|
|
from flask import Blueprint, render_template, session, redirect, url_for
|
2025-12-11 10:16:43 +05:30
|
|
|
|
2026-01-10 01:04:21 +05:30
|
|
|
dashboard_bp = Blueprint("dashboard", __name__, url_prefix="/dashboard")
|
2025-12-11 10:16:43 +05:30
|
|
|
|
|
|
|
|
@dashboard_bp.route("/")
|
|
|
|
|
def dashboard():
|
2026-01-10 16:49:46 +05:30
|
|
|
if not session.get("user_id"):
|
|
|
|
|
return redirect(url_for("auth.login"))
|
|
|
|
|
|
2025-12-11 10:16:43 +05:30
|
|
|
return render_template("dashboard.html", title="Dashboard")
|