Skip to content

Commit

Permalink
fix missing rule_id parameter in rule get API endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubman1 committed Oct 30, 2024
1 parent cc478f5 commit a837a7a
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 a837a7a

Please sign in to comment.