mirror of
https://github.com/fafhrd91/actix-web
synced 2025-01-18 05:41:50 +01:00
Merge branch 'master' of github.com:actix/actix-web
This commit is contained in:
commit
10b166404e
@ -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…
x
Reference in New Issue
Block a user