aboutsummaryrefslogtreecommitdiffstats
path: root/api/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'api/__init__.py')
-rw-r--r--api/__init__.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/api/__init__.py b/api/__init__.py
index dda12aa07..c5aefffe8 100644
--- a/api/__init__.py
+++ b/api/__init__.py
@@ -34,6 +34,7 @@ class ApiResource(Resource):
except KeyError:
pass
+ args.update({k: v for k, v in request.form.items()})
LOG.debug('Input args is: action: %s, args: %s', action, args)
return action, args
@@ -44,8 +45,9 @@ class ApiResource(Resource):
return args
- def _dispatch_post(self):
+ def _dispatch_post(self, **kwargs):
action, args = self._post_args()
+ args.update(kwargs)
return self._dispatch(args, action)
def _dispatch(self, args, action):
@@ -57,9 +59,9 @@ class ApiResource(Resource):
class Url(object):
- def __init__(self, url, endpoint):
+ def __init__(self, url, target):
super(Url, self).__init__()
self.url = url
- self.endpoint = endpoint
+ self.target = target
common_utils.import_modules_from_package("api.resources")