Compare commits

..

No commits in common. "b81d0ae81c1f8c4d86124cb4679250bc21f7df96" and "a9276f63dcdeb61c7fc4924625761eff24be1e7c" have entirely different histories.

4 changed files with 4 additions and 4 deletions

View File

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

View File

@ -1 +1 @@
1.3.34 1.3.33

2
app.py
View File

@ -121,7 +121,7 @@ def proxy_save_subscription():
return jsonify({"error": str(e)}), 502 return jsonify({"error": str(e)}), 502
@app.route('/send-test-notification', methods=['POST']) @app.route('/send-test-notification', methods=['POST'])
def send_test_notification_proxy(): def proxy_send_test_notification():
"""Proxies the request to send a test notification to the backend.""" """Proxies the request to send a test notification to the backend."""
if not session.get("logged_in"): if not session.get("logged_in"):
return jsonify({'error': 'Unauthorized'}), 401 return jsonify({'error': 'Unauthorized'}), 401

View File

@ -68,7 +68,7 @@
document.getElementById('version-link').addEventListener('click', function(event) { document.getElementById('version-link').addEventListener('click', function(event) {
event.preventDefault(); event.preventDefault();
fetch('{{ url_for("send_test_notification_proxy") }}', { fetch('/send-test-notification', {
method: 'POST' method: 'POST'
}).then(response => response.json()) }).then(response => response.json())
.then(data => console.log(data.message)) .then(data => console.log(data.message))