Fix web::scope

upgrade_deps_8
Dessalines 2021-09-29 11:30:45 -04:00
parent d04d9cdabc
commit 9fffa54595
1 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ pub fn config(cfg: &mut web::ServiceConfig, settings: &Settings) {
cfg
.service(
web::scope("/")
web::scope("")
.guard(header_guard_accept)
.route(
"/c/{community_name}",
@ -71,7 +71,7 @@ pub fn config(cfg: &mut web::ServiceConfig, settings: &Settings) {
)
// Inboxes dont work with the header guard for some reason.
.service(
web::scope("/")
web::scope("")
.wrap(digest_verifier)
.guard(header_guard_content_type)
.route("/c/{community_name}/inbox", web::post().to(community_inbox))