mirror of https://github.com/LemmyNet/lemmy.git
Fix web::scope
parent
d04d9cdabc
commit
9fffa54595
|
@ -37,7 +37,7 @@ pub fn config(cfg: &mut web::ServiceConfig, settings: &Settings) {
|
||||||
|
|
||||||
cfg
|
cfg
|
||||||
.service(
|
.service(
|
||||||
web::scope("/")
|
web::scope("")
|
||||||
.guard(header_guard_accept)
|
.guard(header_guard_accept)
|
||||||
.route(
|
.route(
|
||||||
"/c/{community_name}",
|
"/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.
|
// Inboxes dont work with the header guard for some reason.
|
||||||
.service(
|
.service(
|
||||||
web::scope("/")
|
web::scope("")
|
||||||
.wrap(digest_verifier)
|
.wrap(digest_verifier)
|
||||||
.guard(header_guard_content_type)
|
.guard(header_guard_content_type)
|
||||||
.route("/c/{community_name}/inbox", web::post().to(community_inbox))
|
.route("/c/{community_name}/inbox", web::post().to(community_inbox))
|
||||||
|
|
Loading…
Reference in New Issue