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
+5 -5
View File
@@ -1,23 +1,23 @@
'''
反应定义文件读取路由
'''
from flask import Blueprint
from flask import Blueprint, jsonify
from ..utils import reactions
reaction_bp = Blueprint("reaction", __name__, "/reaction")
@reaction_bp.route("list")
def reaction_list():
return reactions.readReactionList()
return jsonify(reactions.readReactionList())
@reaction_bp.route("/match")
def match_list():
return reactions.readMatchList()
return jsonify(reactions.readMatchList())
@reaction_bp.route("/id/<id>")
def search_reaction(id):
return reactions.readReaction(id)
return jsonify(reactions.readReaction(id))
@reaction_bp.route("/match/<id>")
def select_reaction(id):
return reactions.selectReaction(id)
return jsonify(reactions.selectReaction(id))