From 27b265eaf58d8c5ea505a119bab55014b4a15212 Mon Sep 17 00:00:00 2001 From: AIIrondev Date: Wed, 29 Jul 2026 00:03:14 +0200 Subject: [PATCH] Addition of a missing Funktion --- Web/app.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Web/app.py b/Web/app.py index bd82858..faeaea1 100755 --- a/Web/app.py +++ b/Web/app.py @@ -10373,6 +10373,14 @@ def my_borrowed_items(): ) +@app.route('/api/push/vapid-key', methods=['GET']) +def get_vapid_key(): + """Returns the VAPID public key for web push subscriptions.""" + from Web.push_notifications import _get_vapid_public + if not _get_vapid_public(): + return jsonify({'error': 'VAPID public key not configured'}), 500 + return jsonify({'publicKey': _get_vapid_public()}) + @app.route('/notifications') def notifications_view(): """Notification center for users and admins."""