mirror of
https://github.com/fafhrd91/actix-web
synced 2025-06-25 06:39:22 +02:00
rename async to a
This commit is contained in:
@ -71,7 +71,7 @@ fn main() {
|
||||
// with path parameters
|
||||
.resource("/user/{name}/", |r| r.route().method(Method::GET).f(with_param))
|
||||
// async handler
|
||||
.resource("/async/{name}", |r| r.route().method(Method::GET).async(index_async))
|
||||
.resource("/async/{name}", |r| r.route().method(Method::GET).a(index_async))
|
||||
// redirect
|
||||
.resource("/", |r| r.route().method(Method::GET).f(|req| {
|
||||
println!("{:?}", req);
|
||||
|
Reference in New Issue
Block a user