mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-28 01:32:57 +01:00
fix the example in README.md (#739)
This commit is contained in:
parent
9710e9b01f
commit
c4a8bbe47b
@ -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()
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user