Compare commits

...

2 次程式碼提交

作者 SHA1 備註 提交日期
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 個文件被更改,包括 11 次插入2 次删除

查看文件

@ -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}"

查看文件

@ -1 +1 @@
1.2.5 1.2.6

查看文件

@ -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: