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};