From ed5e175a806f45469a6e5504ba0d3f5246997fad Mon Sep 17 00:00:00 2001 From: Kit La Touche Date: Wed, 30 Jul 2025 23:08:40 -0400 Subject: Test receiving push events when backgrounded And thus also displaying notifications. --- src/routes.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/routes.rs') diff --git a/src/routes.rs b/src/routes.rs index ce60835..3e2fc04 100644 --- a/src/routes.rs +++ b/src/routes.rs @@ -27,10 +27,8 @@ pub fn routes(app: &App) -> Router { .route("/api/setup", post(setup::handlers::setup)) .route("/api/vapid", get(push::handlers::vapid)) .route("/api/push", post(push::handlers::register)) - .route( - "/api/push/:subscription", - delete(push::handlers::unregister), - ) + .route("/api/push", delete(push::handlers::unregister)) + .route("/api/broadcast", post(push::handlers::broadcast)) .route("/api/echo", post(push::handlers::echo)); // API routes that require the administrator to complete setup first. -- cgit v1.2.3