diff options
author | Santo Cariotti <santo@dcariotti.me> | 2021-03-19 15:47:59 +0100 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2021-03-19 15:47:59 +0100 |
commit | 7d03f8836de8f4dddb41ce1bf01f23bb683e3904 (patch) | |
tree | aca88191182472e79c03b997d8a894e7749ffe60 /src/email | |
parent | 9a791db0c1a8bd08cf51950ed28066adcef84bca (diff) |
chore: upgrade actix_web to version 3
Diffstat (limited to 'src/email')
-rw-r--r-- | src/email/routes.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/email/routes.rs b/src/email/routes.rs index 14299eb..003d01c 100644 --- a/src/email/routes.rs +++ b/src/email/routes.rs @@ -63,13 +63,12 @@ pub fn config(cfg: &mut web::ServiceConfig) { cfg.service( web::scope("/email") .service( - web::resource("{_:/?}") + web::resource("/") .route(web::get().to(index)) .route(web::post().to(create_email)), ) .service( - web::resource("/search{_:/?}") - .route(web::get().to(search_email)), + web::resource("/search/").route(web::get().to(search_email)), ), ); } |