summaryrefslogtreecommitdiff
path: root/src/email
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2021-03-19 15:47:59 +0100
committerSanto Cariotti <santo@dcariotti.me>2021-03-19 15:47:59 +0100
commit7d03f8836de8f4dddb41ce1bf01f23bb683e3904 (patch)
treeaca88191182472e79c03b997d8a894e7749ffe60 /src/email
parent9a791db0c1a8bd08cf51950ed28066adcef84bca (diff)
chore: upgrade actix_web to version 3
Diffstat (limited to 'src/email')
-rw-r--r--src/email/routes.rs5
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)),
),
);
}