mirror of https://github.com/fafhrd91/actix-web
Merge branch 'custom_methods' of github.com:edgerunnergit/actix-web into custom_methods
This commit is contained in:
commit
813b8bb749
|
@ -97,6 +97,17 @@ async fn route_test() -> impl Responder {
|
||||||
HttpResponse::Ok()
|
HttpResponse::Ok()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// use actix_web::http::Method;
|
||||||
|
// use std::str::FromStr;
|
||||||
|
// let abc = Method::from_str("ABC").unwrap();
|
||||||
|
// #[route(
|
||||||
|
// "/multi/custom",
|
||||||
|
// method = abc,
|
||||||
|
// )]
|
||||||
|
// async fn route_custom_test() -> impl Responder {
|
||||||
|
// HttpResponse::Ok()
|
||||||
|
// }
|
||||||
|
|
||||||
#[routes]
|
#[routes]
|
||||||
#[get("/routes/test")]
|
#[get("/routes/test")]
|
||||||
#[get("/routes/test2")]
|
#[get("/routes/test2")]
|
||||||
|
|
Loading…
Reference in New Issue