summaryrefslogtreecommitdiffstats
path: root/src/routes
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes')
-rw-r--r--src/routes/mod.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/routes/mod.rs b/src/routes/mod.rs
index 7e61662..0de7291 100644
--- a/src/routes/mod.rs
+++ b/src/routes/mod.rs
@@ -1,3 +1,10 @@
pub mod auth;
pub mod model;
pub mod user;
+
+use crate::errors::AppError;
+use axum::response::IntoResponse;
+
+pub async fn page_404() -> impl IntoResponse {
+ AppError::NotFound("Route not found".to_string())
+}