diff options
author | Toby Vincent <tobyv@tobyvin.dev> | 2024-04-12 20:32:51 -0500 |
---|---|---|
committer | Toby Vincent <tobyv@tobyvin.dev> | 2024-04-12 20:32:51 -0500 |
commit | bdafb04ae1db57412c8f9fa8afb1e5627c60cb16 (patch) | |
tree | 32cc1eca385e0d983afc1d6b7fe2665216e6bbf6 /src/error.rs | |
parent | 00d63f5a5648f76d8e9cb8597446e05901543a0c (diff) |
refactor: clean up fallback routes and routers
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/error.rs b/src/error.rs index c9fae0f..89fad78 100644 --- a/src/error.rs +++ b/src/error.rs @@ -11,9 +11,6 @@ pub enum Error { #[error("Migration error: {0}")] Migration(#[from] sqlx::migrate::MigrateError), - #[error("Route not found: {0}")] - RouteNotFound(axum::http::Uri), - #[error("API error: {0}")] Api(#[from] crate::api::error::Error), @@ -29,9 +26,6 @@ impl axum::response::IntoResponse for Error { match self { Self::Api(err) => err.into_response(), Self::Auth(err) => err.into_response(), - err @ Self::RouteNotFound(_) => { - (StatusCode::NOT_FOUND, err.to_string()).into_response() - } err => (StatusCode::INTERNAL_SERVER_ERROR, err.to_string()).into_response(), } } |