mirror of
https://github.com/actix/actix-website
synced 2025-08-21 13:25:36 +02:00
Updates getting-started to v1.0.
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user