mirror of
https://github.com/actix/actix-website
synced 2025-02-02 12:19:04 +01:00
layouts/index.html: method::Get
=> method::GET
This commit is contained in:
parent
bd8f4e92d1
commit
d821414589
@ -137,8 +137,8 @@ fn hello(path: Path<String>) -> impl Responder {
|
|||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
App::new()
|
App::new()
|
||||||
.resource("/", |r| r.method(Method::Get).with(index))
|
.resource("/", |r| r.method(Method::GET).with(index))
|
||||||
.resource("/hello/{name}", |r| r.method(Method::Get).with(hello))
|
.resource("/hello/{name}", |r| r.method(Method::GET).with(hello))
|
||||||
.finish();
|
.finish();
|
||||||
}` "rust" "" }}
|
}` "rust" "" }}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user