15 lines
349 B
Python
15 lines
349 B
Python
'''
|
|
反应定义文件读取路由
|
|
'''
|
|
from flask import Blueprint
|
|
from ..utils import reactions
|
|
|
|
reaction_bp = Blueprint("reaction", __name__, "/reaction")
|
|
|
|
@reaction_bp.route("/id/<id>")
|
|
def search_reaction(id):
|
|
return reactions.readReaction(id)
|
|
|
|
@reaction_bp.route("/match/<id>")
|
|
def select_matter(id):
|
|
return reactions.selectReaction(id) |