Merge branch 'custom_methods' of github.com:edgerunnergit/actix-web into custom_methods

This commit is contained in:
edgerunnergit 2023-02-04 09:48:52 +05:30
commit 813b8bb749
1 changed files with 11 additions and 0 deletions

View File

@ -97,6 +97,17 @@ async fn route_test() -> impl Responder {
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]
#[get("/routes/test")]
#[get("/routes/test2")]