feat: 增加description.py,修复中文问题
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user