Skip to content

Commit

Permalink
Merge pull request #42 from jakubman1/bugfix/rule-get-api
Browse files Browse the repository at this point in the history
fix missing rule_id parameter in rule get API endpoints
  • Loading branch information
jirivrany authored Oct 30, 2024
2 parents cc478f5 + a837a7a commit 9dbe60f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flowapp/views/api_v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def ipv4_rule_get(current_user, rule_id):
:param rule_id:
:return:
"""
return api_common.ipv4_rule_get(current_user)
return api_common.ipv4_rule_get(current_user, rule_id)


@api.route("/rules/ipv6/<int:rule_id>", methods=["GET"])
Expand All @@ -103,7 +103,7 @@ def ipv6_rule_get(current_user, rule_id):
:param rule_id:
:return:
"""
return api_common.ipv6_rule_get(current_user)
return api_common.ipv6_rule_get(current_user, rule_id)


@api.route("/rules/rtbh/<int:rule_id>", methods=["GET"])
Expand All @@ -115,7 +115,7 @@ def rtbh_rule_get(current_user, rule_id):
:param rule_id:
:return:
"""
return api_common.rtbh_rule_get(current_user)
return api_common.rtbh_rule_get(current_user, rule_id)


@api.route("/rules/ipv4/<int:rule_id>", methods=["DELETE"])
Expand Down

0 comments on commit 9dbe60f

Please sign in to comment.