flesh out REST API

can now list/view/add/create/modify users
and start/stop single-user servers
This commit is contained in:
MinRK
2014-09-14 14:33:11 -07:00
parent a47e390aa0
commit 0a8759b0a5
10 changed files with 322 additions and 33 deletions

View File

@@ -38,7 +38,7 @@ def auth_decorator(check_auth):
def decorator(method):
def decorated(self, *args, **kwargs):
check_auth(self)
return method(self, *args)
return method(self, *args, **kwargs)
decorated.__name__ = method.__name__
decorated.__doc__ = method.__doc__
return decorated