Compare commits
No commits in common. "b25e9af1d52b6a6a82c9e7d0cbcc24d00df5663e" and "96c49d36223e0880b8d2777794d24245d5e8ed2f" have entirely different histories.
b25e9af1d5
...
96c49d3622
@ -1,5 +1,5 @@
|
|||||||
[tool.bumpversion]
|
[tool.bumpversion]
|
||||||
current_version = "1.2.6"
|
current_version = "1.2.5"
|
||||||
commit = true
|
commit = true
|
||||||
tag = true
|
tag = true
|
||||||
tag_name = "{new_version}"
|
tag_name = "{new_version}"
|
||||||
|
@ -144,15 +144,6 @@ 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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user