Compare commits
2 Commits
96c49d3622
...
b25e9af1d5
Author | SHA1 | Date | |
---|---|---|---|
b25e9af1d5 | |||
328db2f6e0 |
@ -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}"
|
||||||
|
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user