switched to upload event api
This commit is contained in:
parent
1ba8b4c707
commit
c975d27906
8 changed files with 67 additions and 27 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue