Skip to content

Commit

Permalink
feat: add absolute uri to djrf-api audit decorator (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
johanseto authored Jan 12, 2024
1 parent 40b16e3 commit ed001ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eox_audit_model/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ def wrapper(*args, **kwargs):

@audit_method(action=action)
@rename_function(name=method_name)
def api_method(*input_parameters): # pylint: disable=unused-argument
def api_method(*input_parameters, absolute_uri=""): # pylint: disable=unused-argument
"""This method is just a wrapper in order to capture the input data"""
return func(*args, **kwargs)

return api_method(*input_parameters)
return api_method(*input_parameters, absolute_uri=request.build_absolute_uri())

return wrapper

Expand Down

0 comments on commit ed001ac

Please sign in to comment.