feat: 初始版本,圆角主题与首次管理员引导

This commit is contained in:
2025-12-07 10:53:52 +08:00
commit 63db6a0815
43 changed files with 1293 additions and 0 deletions

11
app/blueprints/main.py Normal file
View File

@@ -0,0 +1,11 @@
from flask import Blueprint, redirect, url_for, current_app, send_from_directory
bp = Blueprint("main", __name__)
@bp.route("/")
def index():
return redirect(url_for("feed.discover"))
@bp.route("/uploads/<path:filename>")
def uploads(filename):
return send_from_directory(current_app.config["UPLOAD_FOLDER"], filename)