1
0

Comparar comentimentos

..

2 Cometimentos

Autor(a) SHA1 Mensagem Data
b81d0ae81c Bump version: 1.3.33 → 1.3.34
Todas as verificações foram bem sucedidas
Build and Publish Docker Image / build-and-push (push) Successful in 3m26s
2025-07-17 19:23:37 +01:00
0f1e97bba2 refactor(notifications): rename test notification proxy function
Rename the `proxy_send_test_notification` function to `send_test_notification_proxy` for better naming consistency.

The corresponding template is updated to use `url_for` for the fetch request, making the URL generation more robust and maintainable.
2025-07-17 19:23:32 +01:00
4 ficheiros modificados com 4 adições e 4 eliminações

Ver ficheiro

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

Ver ficheiro

@ -1 +1 @@
1.3.33
1.3.34

2
app.py
Ver ficheiro

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

Ver ficheiro

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