mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-28 01:32:57 +01:00
update readme
This commit is contained in:
parent
d7efbb516d
commit
b9da09ddf0
@ -12,7 +12,7 @@ fn index(req: HttpRequest) -> String {
|
|||||||
fn main() {
|
fn main() {
|
||||||
HttpServer::new(
|
HttpServer::new(
|
||||||
Application::new()
|
Application::new()
|
||||||
.resource("/{name}", |r| r.method(Method::GET).f(index)))
|
.resource("/{name}", |r| r.f(index)))
|
||||||
.serve::<_, ()>("127.0.0.1:8080");
|
.serve::<_, ()>("127.0.0.1:8080");
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user