Files
movies-diary/crates/presentation/src/openapi/social.rs
Gabriel Kaszewski a7a11dde08
Some checks failed
CI / Check / Test (push) Has been cancelled
refactor: split monolithic handlers + testing into domain-grouped modules
handlers/api.rs (1706 LOC) + html.rs (1735 LOC) → 12 domain files:
auth, diary, movies, users, search, watchlist, goals, social,
integrations, helpers + existing import/webhook/wrapup/images/rss.

domain/testing.rs (1309 LOC) → testing/ module:
in_memory, fakes, noops, panics, wrapup.

Update README + architecture.mmd with goals feature.
2026-06-08 23:59:23 +02:00

39 lines
1.3 KiB
Rust

#[cfg(feature = "federation")]
use api_types::{
ActorListResponse, ActorUrlRequest, AddBlockedDomainRequest, BlockedActorResponse,
BlockedDomainResponse, FollowRequest, RemoteActorDto,
};
#[cfg(feature = "federation")]
use utoipa::OpenApi;
#[cfg(feature = "federation")]
#[derive(OpenApi)]
#[openapi(
paths(
crate::handlers::social::get_following,
crate::handlers::social::get_followers,
crate::handlers::social::get_pending_followers,
crate::handlers::social::follow,
crate::handlers::social::unfollow,
crate::handlers::social::accept_follower,
crate::handlers::social::reject_follower,
crate::handlers::social::remove_follower,
crate::handlers::social::get_blocked_domains_admin,
crate::handlers::social::add_blocked_domain_admin,
crate::handlers::social::remove_blocked_domain_admin,
crate::handlers::social::block_actor_api,
crate::handlers::social::unblock_actor_api,
crate::handlers::social::get_blocked_actors_api,
),
components(schemas(
ActorListResponse,
RemoteActorDto,
FollowRequest,
ActorUrlRequest,
BlockedDomainResponse,
AddBlockedDomainRequest,
BlockedActorResponse,
))
)]
pub struct SocialDoc;