mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
Add mark all as old API endpoint for notifications
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
a647e0d061
commit
bda7b87cc7
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user