feat: Add api route to dismiss alert
All checks were successful
Tests and Linting / Tests-Linting (3.11) (push) Successful in 29s
Tests and Linting / Tests-Linting (3.10) (push) Successful in 36s
Tests and Linting / Tests-Linting (3.13) (push) Successful in 37s
Build Docker / Build Images (map[dockerfile:Dockerfile.hsd tag_suffix:-hsd target:hsd]) (push) Successful in 42s
Build Docker / Build Images (map[dockerfile:Dockerfile tag_suffix: target:default]) (push) Successful in 47s

This commit is contained in:
2025-09-09 17:29:11 +10:00
parent 6096f82c4d
commit 699a74f093

View File

@@ -1946,6 +1946,7 @@ def add_alert(name:str,output:str,account:str="all"):
pass
@app.route('/dismiss/<int:alert_id>')
@app.route('/api/v1/dismiss/<int:alert_id>')
def dismiss_alert(alert_id):
# Check if the user is logged in
if request.cookies.get("account") is None: