diff --git a/app/routes/matters.py b/app/routes/matters.py index 88a0a8c..835a700 100644 --- a/app/routes/matters.py +++ b/app/routes/matters.py @@ -8,8 +8,4 @@ matter_bp = Blueprint("matter", __name__, "/matter") @matter_bp.route("/id/") def search_matter(id): - return matters.readMatter(id) - -@matter_bp.route("/match/") -def select_matter(id): - return id \ No newline at end of file + return matters.readMatter(id) \ No newline at end of file diff --git a/app/routes/reactions.py b/app/routes/reactions.py index 87f4aaf..a0fbdeb 100644 --- a/app/routes/reactions.py +++ b/app/routes/reactions.py @@ -8,4 +8,8 @@ reaction_bp = Blueprint("reaction", __name__, "/reaction") @reaction_bp.route("/id/") def search_reaction(id): - return reactions.readReaction(id) \ No newline at end of file + return reactions.readReaction(id) + +@reaction_bp.route("/match/") +def select_matter(id): + return reactions.selectReaction(id) \ No newline at end of file diff --git a/app/utils/reactions.py b/app/utils/reactions.py index 269e80b..c1f9713 100644 --- a/app/utils/reactions.py +++ b/app/utils/reactions.py @@ -33,7 +33,7 @@ def readReaction(id: str): def selectReaction(id: str): matter_id = match_list.get(id, -1) - if (matter_id == -1): + if matter_id == -1: return {"message": f"No Matter {id}"} return matter_id \ No newline at end of file