summaryrefslogtreecommitdiff
path: root/src/email/routes.rs
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2021-03-19 20:27:53 +0100
committerGitHub <noreply@github.com>2021-03-19 20:27:53 +0100
commit4249c2e09579d6454e7572111e44c284190a2c8f (patch)
treefc47bb02aa430accce176903af5e36b81179c87a /src/email/routes.rs
parent9a791db0c1a8bd08cf51950ed28066adcef84bca (diff)
parent8225cba5ce69a073b54e2eeba7c9d466efa107e3 (diff)
Merge pull request #20 from gico-net/feat/cors
Enable CORS
Diffstat (limited to 'src/email/routes.rs')
-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)),
),
);
}