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.
This commit is contained in:
geoffsee
2025-05-27 13:06:19 -04:00
parent 77d5a51e76
commit 8f4777a006
4 changed files with 2 additions and 9 deletions

View File

@@ -1,6 +1,5 @@
// src/handlers/mod.rs
pub mod error;
pub mod status;
pub mod not_found;
pub mod ui;
pub mod webhooks;

View File

@@ -1,4 +1,3 @@
// src/handlers/error.rs
use axum::{
http::StatusCode,
Json,

View File

@@ -1,5 +0,0 @@
// src/handlers/status.rs
pub async fn handle_status() -> &'static str {
tracing::debug!("Status check requested");
"Server is running"
}

View File

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