2024-04-09 01:14:48 +02:00
|
|
|
pub mod activitypub;
|
|
|
|
|
|
|
|
#[cfg(feature = "web")]
|
|
|
|
pub mod web;
|
|
|
|
|
|
|
|
#[cfg(feature = "mastodon")]
|
|
|
|
pub mod mastodon;
|
2024-04-11 00:29:32 +02:00
|
|
|
|
|
|
|
#[cfg(not(feature = "mastodon"))]
|
|
|
|
pub mod mastodon {
|
|
|
|
pub trait MastodonRouter {
|
|
|
|
fn mastodon_routes(self) -> Self { self }
|
|
|
|
}
|
|
|
|
|
|
|
|
impl MastodonRouter for axum::Router<crate::server::Context> {}
|
|
|
|
}
|