1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-06-02 21:39:26 +00:00

update readme

This commit is contained in:
Nikolay Kim 2017-12-11 19:17:37 -08:00
parent d7efbb516d
commit b9da09ddf0

View file

@ -12,7 +12,7 @@ fn index(req: HttpRequest) -> String {
fn main() {
HttpServer::new(
Application::new()
.resource("/{name}", |r| r.method(Method::GET).f(index)))
.resource("/{name}", |r| r.f(index)))
.serve::<_, ()>("127.0.0.1:8080");
}
```