fix the example in README.md

This commit is contained in:
Joe Kyo 2019-03-29 10:39:21 +08:00
parent 9710e9b01f
commit 1072868d41
1 changed files with 2 additions and 2 deletions

View File

@ -37,9 +37,9 @@ fn main() -> std::io::Result<()> {
HttpServer::new( HttpServer::new(
|| App::new().service( || App::new().service(
web::resource("/{id}/{name}/index.html") web::resource("/{id}/{name}/index.html")
.route(web::get().to(index))) .route(web::get().to(index))))
.bind("127.0.0.1:8080")? .bind("127.0.0.1:8080")?
.run(); .run()
} }
``` ```