mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +00:00
tornado: Move the /notify-tornado endpoint, and document it better.
This commit is contained in:
committed by
Tim Abbott
parent
3f8a0c968a
commit
84fa9be73a
@@ -43,6 +43,8 @@ def in_tornado_thread(f: Callable[P, T]) -> Callable[P, T]:
|
||||
def notify(
|
||||
request: HttpRequest, data: Mapping[str, Any] = REQ(json_validator=check_dict([]))
|
||||
) -> HttpResponse:
|
||||
# Only the puppeteer full-stack tests use this endpoint; it
|
||||
# injects an event, as if read from RabbitMQ.
|
||||
in_tornado_thread(process_notification)(data)
|
||||
return json_success(request)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user