1
0
mirror of https://github.com/actix/actix-website synced 2024-11-27 18:12:57 +01:00

Merge pull request #70 from SamuelMarks/master

layouts/index.html: `method::Get` => `method::GET`
This commit is contained in:
krircc 2019-02-27 16:20:33 +08:00 committed by GitHub
commit 886f9febe5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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>