diff --git a/layouts/index.html b/layouts/index.html index b9e9d9d..9751979 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -137,8 +137,8 @@ fn hello(path: Path) -> impl Responder { fn main() { App::new() - .resource("/", |r| r.method(Method::Get).with(index)) - .resource("/hello/{name}", |r| r.method(Method::Get).with(hello)) + .resource("/", |r| r.method(Method::GET).with(index)) + .resource("/hello/{name}", |r| r.method(Method::GET).with(hello)) .finish(); }` "rust" "" }}