From 577dd9034119a8e426d4349f55a85aa06cc1ae56 Mon Sep 17 00:00:00 2001 From: Cameron Dershem Date: Thu, 13 Jun 2019 00:33:32 -0400 Subject: [PATCH] Updates getting-started to v1.0. --- examples/getting-started/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/getting-started/src/main.rs b/examples/getting-started/src/main.rs index e3a4b1d..f81f472 100644 --- a/examples/getting-started/src/main.rs +++ b/examples/getting-started/src/main.rs @@ -9,8 +9,8 @@ fn index(_req: HttpRequest) -> HttpResponse { //
fn main() { - HttpServer::new(|| App::new().service(web::resource("/").to(index))) - .bind("127.0.0.1:8000") + HttpServer::new(|| App::new().route("/", web::get().to(index))) + .bind("127.0.0.1:8088") .unwrap() .run() .unwrap();