more api updates

This commit is contained in:
j 2014-10-06 12:55:40 +02:00
parent d5e75fc880
commit 970d5c5d84

View file

@ -52,7 +52,7 @@ class ApiActions(dict):
properties = {}
def __init__(self):
def api(request):
def api(request, data):
'''
returns list of all known api actions
param data {
@ -76,7 +76,6 @@ class ApiActions(dict):
}
}
'''
data = json.loads(request.POST.get('data', '{}'))
docs = data.get('docs', False)
code = data.get('code', False)
_actions = self.keys()