From 9fffa545950de3dea24d76ff91b0a4dd6bbf570e Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 29 Sep 2021 11:30:45 -0400 Subject: [PATCH] Fix web::scope --- crates/apub/src/http/routes.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/apub/src/http/routes.rs b/crates/apub/src/http/routes.rs index 612cc4586..b17b42559 100644 --- a/crates/apub/src/http/routes.rs +++ b/crates/apub/src/http/routes.rs @@ -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))