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