From e5c1b2efb597bc7089e833bf570d8217c36f50c3 Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Tue, 15 Oct 2024 17:22:31 -0500 Subject: refactor: removed unused deps --- src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 6a64876..a9550ba 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -11,5 +11,7 @@ pub mod state; pub mod status; pub fn router() -> axum::Router { - axum::Router::new().nest("/api/v1", api::router()) + axum::Router::new() + .nest("/api/v1", api::router()) + .fallback(|uri: axum::http::Uri| async { Error::RouteNotFound(uri) }) } -- cgit v1.2.3-70-g09d2