|
|
@ -4,6 +4,7 @@ use lemmy_apub::{
|
|
|
|
http::{
|
|
|
|
http::{
|
|
|
|
comment::get_apub_comment,
|
|
|
|
comment::get_apub_comment,
|
|
|
|
community::{get_apub_community_followers, get_apub_community_http, get_apub_community_outbox},
|
|
|
|
community::{get_apub_community_followers, get_apub_community_http, get_apub_community_outbox},
|
|
|
|
|
|
|
|
get_activity,
|
|
|
|
post::get_apub_post,
|
|
|
|
post::get_apub_post,
|
|
|
|
user::get_apub_user_http,
|
|
|
|
user::get_apub_user_http,
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -36,7 +37,8 @@ pub fn config(cfg: &mut web::ServiceConfig) {
|
|
|
|
)
|
|
|
|
)
|
|
|
|
.route("/u/{user_name}", web::get().to(get_apub_user_http))
|
|
|
|
.route("/u/{user_name}", web::get().to(get_apub_user_http))
|
|
|
|
.route("/post/{post_id}", web::get().to(get_apub_post))
|
|
|
|
.route("/post/{post_id}", web::get().to(get_apub_post))
|
|
|
|
.route("/comment/{comment_id}", web::get().to(get_apub_comment)),
|
|
|
|
.route("/comment/{comment_id}", web::get().to(get_apub_comment))
|
|
|
|
|
|
|
|
.route("/activities/{type_}/{id}", web::get().to(get_activity)),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
// Inboxes dont work with the header guard for some reason.
|
|
|
|
// Inboxes dont work with the header guard for some reason.
|
|
|
|
.service(
|
|
|
|
.service(
|
|
|
|