This commit is contained in:
DengDai
2025-12-08 14:31:21 +08:00
commit ad2c65affb
35 changed files with 3500 additions and 0 deletions

15
routes/main.py Normal file
View File

@@ -0,0 +1,15 @@
from flask import Blueprint, render_template, session, redirect, url_for
main_bp = Blueprint('main', __name__)
@main_bp.route('/')
def index():
if 'user_id' not in session:
return redirect(url_for('auth.login'))
return render_template('main/index.html')
@main_bp.route('/dashboard')
def dashboard():
if 'user_id' not in session:
return redirect(url_for('auth.login'))
return render_template('main/dashboard.html')