From 2717e4a5fd03e6ca21e8b6fb67e7dacd0ce99c32 Mon Sep 17 00:00:00 2001 From: august kline Date: Mon, 2 Sep 2024 13:12:21 -0400 Subject: [PATCH] Fix layer application --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index cb4a661..56b1871 100644 --- a/src/main.rs +++ b/src/main.rs @@ -38,6 +38,7 @@ async fn main() { fn app() -> Router { Router::new() + .route("/:command", get(command)) .layer( // Throttle incoming traffic ServiceBuilder::new() @@ -55,7 +56,6 @@ fn app() -> Router { .allow_origin("*".parse::().unwrap()) .allow_methods([Method::GET]), ) - .route("/:command", get(command)) } #[derive(Debug)]