Compare commits

..

2 Commits

Author SHA1 Message Date
b25e9af1d5 Bump version: 1.2.5 → 1.2.6
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 1m27s
2025-07-17 16:23:21 +01:00
328db2f6e0 push the key 2025-07-17 16:23:16 +01:00
3 changed files with 11 additions and 2 deletions

View File

@ -1,5 +1,5 @@
[tool.bumpversion] [tool.bumpversion]
current_version = "1.2.5" current_version = "1.2.6"
commit = true commit = true
tag = true tag = true
tag_name = "{new_version}" tag_name = "{new_version}"

View File

@ -1 +1 @@
1.2.5 1.2.6

View File

@ -144,6 +144,15 @@ def login_route(username: str, password: str) -> Response:
return check_login(username, password) return check_login(username, password)
@api_blueprint.route("/vapid-public-key", methods=["GET"])
def vapid_public_key():
"""Provides the VAPID public key."""
public_key = current_app.config["VAPID_PUBLIC_KEY"]
# Clean up the key
public_key = public_key.replace("-----BEGIN PUBLIC KEY-----", "").replace("-----END PUBLIC KEY-----", "").strip()
return jsonify({"public_key": public_key})
@api_blueprint.route("/save-subscription", methods=["POST"]) @api_blueprint.route("/save-subscription", methods=["POST"])
@requires_basic_auth @requires_basic_auth
def save_subscription(username: str, password: str) -> Response: def save_subscription(username: str, password: str) -> Response: