Examples readme (#25)

* Examples readme

* link?
This commit is contained in:
David Pedersen
2021-06-19 14:06:49 +02:00
committed by GitHub
parent 44577a0108
commit 8d8cc3ba3d
7 changed files with 16 additions and 30 deletions
+1 -4
View File
@@ -4,11 +4,8 @@ use std::net::SocketAddr;
#[tokio::main]
async fn main() {
tracing_subscriber::fmt::init();
// build our application with some routes
let app = route("/", get(show_form).post(accept_form))
.layer(tower_http::trace::TraceLayer::new_for_http());
let app = route("/", get(show_form).post(accept_form));
// run it with hyper
let addr = SocketAddr::from(([127, 0, 0, 1], 3000));