feat: 增加description.py,修复中文问题

This commit is contained in:
2026-02-08 20:55:19 +08:00
parent 8455dc7924
commit 6b7af1301f
9 changed files with 38 additions and 15 deletions
+2 -2
View File
@@ -1,14 +1,14 @@
'''
资源文件读取路由
'''
from flask import Blueprint, send_file
from flask import Blueprint, send_file, jsonify
from ..utils import assets
asset_bp = Blueprint("asset", __name__, "/asset")
@asset_bp.route("/list")
def asset_list():
return assets.readAssetsList()
return jsonify(assets.readAssetsList())
@asset_bp.route("/pic/<id>")
def find_pic(id: str):