git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
649af4d
)
Fix GetRoles()
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Tue, 11 Dec 2012 02:42:33 +0000
(21:42 -0500)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Tue, 11 Dec 2012 02:42:33 +0000
(21:42 -0500)
PLC/RestAPI.py
patch
|
blob
|
history
diff --git
a/PLC/RestAPI.py
b/PLC/RestAPI.py
index
e82ea3a
..
1954219
100644
(file)
--- a/
PLC/RestAPI.py
+++ b/
PLC/RestAPI.py
@@
-36,7
+36,7
@@
def AuthCheck():
def GetRoles():
if request.method == 'POST':
args = [request.json.get('auth')]
- result = api.call(request.remote_addr, '
AuthCheck
', *args)
- return
jsonify
(result)
+ result = api.call(request.remote_addr, '
GetRoles
', *args)
+ return
prepare_response
(result)
return get_response