update examples

This commit is contained in:
David Pedersen
2022-07-03 21:47:23 +02:00
parent 02f9ebaee9
commit 16ef59b6ce
38 changed files with 101 additions and 83 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ async fn main() {
.with(tracing_subscriber::fmt::layer())
.init();
let app = Router::new()
let app = Router::without_state()
.route("/", post(|| async move { "Hello from `POST /`" }))
.layer(middleware::from_fn(print_request_response));