aboutsummaryrefslogtreecommitdiff
path: root/modules/rest_api.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-09-20 10:48:24 +0100
committerGravatar jesopo2019-09-20 10:48:24 +0100
commit1fac9135fbc95d2b6e2459f001c2d069bd63b0f6 (patch)
treec44c09cdb276ba8dfc1e21612737825989f1407b /modules/rest_api.py
parentupdate _ap_*_url() functions to use path-args (diff)
signature
'path' -> 'args' on REST API events
Diffstat (limited to 'modules/rest_api.py')
-rw-r--r--modules/rest_api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/rest_api.py b/modules/rest_api.py
index 61ea23ec..29b70320 100644
--- a/modules/rest_api.py
+++ b/modules/rest_api.py
@@ -110,7 +110,7 @@ class Handler(http.server.BaseHTTPRequestHandler):
try:
event_response = _events.on("api").on(method).on(
endpoint).call_for_result_unsafe(params=params,
- path=args, data=data, headers=headers,
+ args=args, data=data, headers=headers,
response=response, url_for=self._url_for(headers))
except Exception as e:
_log.error("failed to call API endpoint \"%s\"",