diff options
| author | Kit La Touche <kit@transneptune.net> | 2025-07-30 23:08:40 -0400 |
|---|---|---|
| committer | Kit La Touche <kit@transneptune.net> | 2025-07-30 23:08:40 -0400 |
| commit | ed5e175a806f45469a6e5504ba0d3f5246997fad (patch) | |
| tree | 0d4233c57596186b86d165640ca4721e7495567d /src/routes.rs | |
| parent | b63380b251d04dd92f06aa5bbc22a72ca3e4bf8e (diff) | |
Test receiving push events when backgrounded
And thus also displaying notifications.
Diffstat (limited to 'src/routes.rs')
| -rw-r--r-- | src/routes.rs | 6 |
1 files changed, 2 insertions, 4 deletions
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<App> { .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. |
