Handle 404 fallback.

This commit is contained in:
2026-09-25 17:57:49 +02:00
parent 37a2b7b5dc
commit 94a5acc394
3 changed files with 11 additions and 3 deletions
+7
View File
@@ -1,3 +1,5 @@
use crate::error::AppError;
pub mod dtos;
pub mod extractors;
pub mod scheduled_transactions;
@@ -15,5 +17,10 @@ pub fn create_router(pool: sqlx::PgPool) -> axum::Router {
)
.nest("/transactions", transactions::create_router()),
)
.fallback(handle_fallback)
.with_state(pool)
}
async fn handle_fallback() -> AppError {
AppError::NotFound
}