diff --git a/base_rest_auth_api_key/apispec/rest_method_security_plugin.py b/base_rest_auth_api_key/apispec/rest_method_security_plugin.py index 5c56d6cfe..4efdca41c 100644 --- a/base_rest_auth_api_key/apispec/rest_method_security_plugin.py +++ b/base_rest_auth_api_key/apispec/rest_method_security_plugin.py @@ -18,7 +18,7 @@ def init_spec(self, spec): spec.components.security_scheme("api_key", api_key_scheme) def operation_helper(self, path=None, operations=None, **kwargs): - routing = kwargs.get("routing") + routing = kwargs.get("original_routing") if not routing: super().operation_helper(path, operations, **kwargs) if not operations: