1
0
mirror of https://github.com/actix/actix-website synced 2025-06-29 16:24:58 +02:00

layouts/index.html: method::Get => method::GET

This commit is contained in:
Samuel Marks
2019-01-08 17:19:09 +11:00
parent bd8f4e92d1
commit d821414589

View File

@ -137,8 +137,8 @@ fn hello(path: Path<String>) -> 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" "" }}
</div>