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:
@@ -1,6 +1,5 @@
|
||||
|
||||
// src/handlers/mod.rs
|
||||
pub mod error;
|
||||
pub mod status;
|
||||
pub mod not_found;
|
||||
pub mod ui;
|
||||
pub mod webhooks;
|
@@ -1,4 +1,3 @@
|
||||
// src/handlers/error.rs
|
||||
use axum::{
|
||||
http::StatusCode,
|
||||
Json,
|
@@ -1,5 +0,0 @@
|
||||
// src/handlers/status.rs
|
||||
pub async fn handle_status() -> &'static str {
|
||||
tracing::debug!("Status check requested");
|
||||
"Server is running"
|
||||
}
|
@@ -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};
|
||||
|
Reference in New Issue
Block a user