Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix missing rule_id parameter in rule get API endpoints #42

Merged
merged 1 commit into from
Oct 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading