DOCS+FE+BE: cleanup, SSE wait for app initialization #1440

Signed-off-by: jokob-sk <jokob.sk@gmail.com>
This commit is contained in:
jokob-sk
2026-02-01 10:36:31 +11:00
parent f52a7c112a
commit 4c9c89050b
5 changed files with 28 additions and 7 deletions

View File

@@ -1401,7 +1401,7 @@ def api_create_event(mac, payload=None):
def api_events_by_mac(mac, payload=None):
"""Delete events for a specific device MAC; string converter keeps this distinct from /events/<int:days>."""
device_handler = DeviceInstance()
result = device_handler.deleteDeviceEvents(mac)
return jsonify(result)
@@ -1740,7 +1740,8 @@ def api_write_notification(payload=None):
auth_callable=is_authorized
)
def api_get_unread_notifications(payload=None):
return get_unread_notifications()
notifications = get_unread_notifications()
return jsonify(notifications)
@app.route("/messaging/in-app/read/all", methods=["POST"])