mirror of
https://github.com/actix/actix-web.git
synced 2024-12-22 16:16:40 +00:00
update readme example
This commit is contained in:
parent
96381f5d6a
commit
b1ae7f95cc
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ fn index(req: HttpRequest) -> String {
|
|||
|
||||
fn main() {
|
||||
HttpServer::new(
|
||||
Application::new("/")
|
||||
Application::new()
|
||||
.resource("/{name}", |r| r.method(Method::GET).f(index)))
|
||||
.serve::<_, ()>("127.0.0.1:8080");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue