switched to upload event api

This commit is contained in:
Kevin Froman 2020-01-04 06:13:10 -06:00
parent 1ba8b4c707
commit c975d27906
8 changed files with 67 additions and 27 deletions

View file

@ -48,8 +48,7 @@ class DaemonEventsBP:
json_data = {}
for handler in self.listeners:
if handler.__name__ == name:
return Response(
spawn(handler, **json_data).get(timeout=120))
return Response(handler(**json_data))
abort(404)
def register_listener(self, listener: Callable):