aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 560225e..4541646 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -38,6 +38,8 @@ async fn router() -> Router {
38 .layer(TraceLayer::new_for_http()) 38 .layer(TraceLayer::new_for_http())
39 .with_state(AppState { db, secret }) 39 .with_state(AppState { db, secret })
40 .merge(Scalar::with_url("/docs", api)) 40 .merge(Scalar::with_url("/docs", api))
41 .fallback(routers::not_found)
42 .method_not_allowed_fallback(routers::method_not_allowed)
41} 43}
42 44
43#[tokio::main] 45#[tokio::main]