mirror of
https://github.com/actix/actix-website
synced 2024-12-18 01:43:59 +01:00
Updates getting-started to v1.0.
This commit is contained in:
parent
315b131cdd
commit
577dd90341
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user