From 8f4777a006c17c9a22338e1a7697dc84554961ae Mon Sep 17 00:00:00 2001 From: geoffsee <> Date: Tue, 27 May 2025 13:06:19 -0400 Subject: [PATCH] Remove `status` handler and rename `error` to `not_found`. The `handle_status` function was deleted as it is no longer needed. Additionally, the `error` module was renamed to `not_found` for clearer semantics. References were updated accordingly to reflect these changes. --- src/handlers/mod.rs | 3 +-- src/handlers/{error.rs => not_found.rs} | 1 - src/handlers/status.rs | 5 ----- src/routes.rs | 2 +- 4 files changed, 2 insertions(+), 9 deletions(-) rename src/handlers/{error.rs => not_found.rs} (93%) delete mode 100644 src/handlers/status.rs diff --git a/src/handlers/mod.rs b/src/handlers/mod.rs index 5351df1..c2b3cc7 100644 --- a/src/handlers/mod.rs +++ b/src/handlers/mod.rs @@ -1,6 +1,5 @@ // src/handlers/mod.rs -pub mod error; -pub mod status; +pub mod not_found; pub mod ui; pub mod webhooks; \ No newline at end of file diff --git a/src/handlers/error.rs b/src/handlers/not_found.rs similarity index 93% rename from src/handlers/error.rs rename to src/handlers/not_found.rs index 8b08792..a9f25f9 100644 --- a/src/handlers/error.rs +++ b/src/handlers/not_found.rs @@ -1,4 +1,3 @@ -// src/handlers/error.rs use axum::{ http::StatusCode, Json, diff --git a/src/handlers/status.rs b/src/handlers/status.rs deleted file mode 100644 index 1bb1b56..0000000 --- a/src/handlers/status.rs +++ /dev/null @@ -1,5 +0,0 @@ -// src/handlers/status.rs -pub async fn handle_status() -> &'static str { - tracing::debug!("Status check requested"); - "Server is running" -} \ No newline at end of file diff --git a/src/routes.rs b/src/routes.rs index 031fe98..5f5d021 100644 --- a/src/routes.rs +++ b/src/routes.rs @@ -1,5 +1,5 @@ use crate::handlers::webhooks::handle_webhooks_post; -use crate::handlers::{error::handle_not_found, ui::serve_ui, webhooks::handle_webhooks}; +use crate::handlers::{not_found::handle_not_found, ui::serve_ui, webhooks::handle_webhooks}; use axum::routing::post; use axum::routing::{get, Router}; use tower_http::trace::{self, TraceLayer};