Files
backend/app/routes/reactions.py
T

23 lines
525 B
Python
Raw Normal View History

2026-01-20 10:13:51 +08:00
'''
反应定义文件读取路由
'''
from flask import Blueprint
2026-01-20 08:45:50 +08:00
from ..utils import reactions
reaction_bp = Blueprint("reaction", __name__, "/reaction")
2026-01-21 16:37:36 +08:00
@reaction_bp.route("list")
def reaction_list():
return reactions.readReactionList()
@reaction_bp.route("/match")
def match_list():
return reactions.readMatchList()
2026-01-20 08:45:50 +08:00
@reaction_bp.route("/id/<id>")
def search_reaction(id):
2026-01-20 12:18:30 +08:00
return reactions.readReaction(id)
@reaction_bp.route("/match/<id>")
2026-01-21 16:37:36 +08:00
def select_reaction(id):
2026-01-20 12:18:30 +08:00
return reactions.selectReaction(id)