Add mark all as old API endpoint for notifications

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
rzuasti
2026-05-27 11:55:30 -04:00
co-authored by Claude Sonnet 4.6
parent a647e0d061
commit bda7b87cc7
3 changed files with 74 additions and 0 deletions
+4
View File
@@ -33,6 +33,10 @@ pub async fn serve() -> Result<(), Box<dyn Error>> {
.route("/api/devices/{mac_address}", delete(devices::unregister))
.route("/api/devices/{mac_address}", get(devices::read))
.route("/api/notifications", get(notifications::list))
.route(
"/api/notifications/mark_all_as_old",
post(notifications::mark_all_as_old),
)
.route("/api/notifications/{id}", get(notifications::read))
.route(
"/api/notifications/{id}/read_without_flagging",