Skip to content

Commit

Permalink
Fix @endpoint decorator not passing arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
tommydeboer committed Apr 19, 2019
1 parent c9f3c8f commit aa210ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mcmd/client/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@


def endpoint(func):
def wrapper():
return urljoin(config.get('host', 'selected'), func())
def wrapper(*args, **kwargs):
return urljoin(config.get('host', 'selected'), func(*args, **kwargs))

return wrapper

Expand Down

0 comments on commit aa210ef

Please sign in to comment.