summaryrefslogtreecommitdiff
path: root/src/routes.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes.rs')
-rw-r--r--src/routes.rs6
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.