feat: 初始版本,圆角主题与首次管理员引导
This commit is contained in:
11
app/blueprints/main.py
Normal file
11
app/blueprints/main.py
Normal 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)
|
||||
Reference in New Issue
Block a user