mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
push_notifs: Add endpoint for sending a test notification.
Fixes #23997
This commit is contained in:
committed by
Tim Abbott
parent
f8a74831b0
commit
d43be2b7c4
@@ -92,6 +92,7 @@ from zerver.views.push_notifications import (
|
||||
add_apns_device_token,
|
||||
remove_android_reg_id,
|
||||
remove_apns_device_token,
|
||||
send_test_push_notification_api,
|
||||
)
|
||||
from zerver.views.reactions import add_reaction, remove_reaction
|
||||
from zerver.views.read_receipts import read_receipts
|
||||
@@ -380,6 +381,7 @@ v1_api_and_json_patterns = [
|
||||
"users/me/apns_device_token", POST=add_apns_device_token, DELETE=remove_apns_device_token
|
||||
),
|
||||
rest_path("users/me/android_gcm_reg_id", POST=add_android_reg_id, DELETE=remove_android_reg_id),
|
||||
rest_path("mobile_push/test_notification", POST=send_test_push_notification_api),
|
||||
# users/*/presence => zerver.views.presence.
|
||||
rest_path("users/me/presence", POST=update_active_status_backend),
|
||||
# It's important that this sit after users/me/presence so that
|
||||
|
||||
Reference in New Issue
Block a user