From a837a7a28705ee2ad45ede6440ac34a7241bb55f Mon Sep 17 00:00:00 2001 From: Jakub Man Date: Wed, 30 Oct 2024 12:07:55 +0100 Subject: [PATCH] fix missing rule_id parameter in rule get API endpoints --- flowapp/views/api_v3.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flowapp/views/api_v3.py b/flowapp/views/api_v3.py index 10c7fcf..8f7b2cb 100644 --- a/flowapp/views/api_v3.py +++ b/flowapp/views/api_v3.py @@ -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/", methods=["GET"]) @@ -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/", methods=["GET"]) @@ -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/", methods=["DELETE"])