1
0
mirror of https://github.com/actix/actix-website synced 2024-11-23 16:31:08 +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>
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();