Skip to content

Commit

Permalink
Merge pull request #184 from rustamwho/backslashes
Browse files Browse the repository at this point in the history
Remove unnecessary backslashes
  • Loading branch information
drewxa authored Nov 23, 2023
2 parents c416f91 + dcf17c4 commit 439d5df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ad_api/api/creative_assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def register_asset(self, **kwargs) -> ApiResponse:
body = Utils.convert_body(kwargs.pop('body'), wrap=False)
return self._request(kwargs.pop('path'), data=body, params=kwargs)

@sp_endpoint('/assets/upload/', method='POST')
@sp_endpoint('/assets/upload', method='POST')
def upload_asset(self, **kwargs) -> ApiResponse:
r"""
Expand All @@ -60,7 +60,7 @@ def upload_asset(self, **kwargs) -> ApiResponse:
body = Utils.convert_body(kwargs.pop('body'), wrap=False)
return self._request(kwargs.pop('path'), data=body, params=kwargs)

@sp_endpoint('/assets/search/', method='POST')
@sp_endpoint('/assets/search', method='POST')
def search_assets(self, **kwargs) -> ApiResponse:
r"""
Expand Down Expand Up @@ -107,7 +107,7 @@ def search_assets(self, **kwargs) -> ApiResponse:
body = Utils.convert_body(kwargs.pop('body'), wrap=False)
return self._request(kwargs.pop('path'), data=body, params=kwargs)

@sp_endpoint('/assets/', method='GET')
@sp_endpoint('/assets', method='GET')
def get_asset(self, **kwargs) -> ApiResponse:
r"""
Expand Down

0 comments on commit 439d5df

Please sign in to comment.