1
0
mirror of https://github.com/actix/actix-website synced 2024-11-24 00:41:07 +01:00

Updates getting-started to v1.0.

This commit is contained in:
Cameron Dershem 2019-06-13 00:33:32 -04:00
parent 315b131cdd
commit 577dd90341

View File

@ -9,8 +9,8 @@ fn index(_req: HttpRequest) -> HttpResponse {
// <main> // <main>
fn main() { fn main() {
HttpServer::new(|| App::new().service(web::resource("/").to(index))) HttpServer::new(|| App::new().route("/", web::get().to(index)))
.bind("127.0.0.1:8000") .bind("127.0.0.1:8088")
.unwrap() .unwrap()
.run() .run()
.unwrap(); .unwrap();