diff options
| author | Kit La Touche <kit@transneptune.net> | 2025-08-03 23:19:32 -0400 |
|---|---|---|
| committer | Kit La Touche <kit@transneptune.net> | 2025-08-03 23:19:32 -0400 |
| commit | 39282cf5d9494290a674a01a3f1f8172badcb16e (patch) | |
| tree | 598423e56786d4d05af3121d2334014a39166e3c /src/routes.rs | |
| parent | eaf95ece7dfb4d4d591b2f501183b2706653742e (diff) | |
Remove echo and broadcast web-push logic
They were just there for hand-testing. We don't want them in the final
server.
Diffstat (limited to 'src/routes.rs')
| -rw-r--r-- | src/routes.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/routes.rs b/src/routes.rs index 3e2fc04..3180afa 100644 --- a/src/routes.rs +++ b/src/routes.rs @@ -27,9 +27,7 @@ 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", delete(push::handlers::unregister)) - .route("/api/broadcast", post(push::handlers::broadcast)) - .route("/api/echo", post(push::handlers::echo)); + .route("/api/push", delete(push::handlers::unregister)); // API routes that require the administrator to complete setup first. let api_setup_required = Router::new() |
