forked from alemi/upub
16 lines
323 B
Rust
16 lines
323 B
Rust
pub mod activitypub;
|
|
|
|
#[cfg(feature = "web")]
|
|
pub mod web;
|
|
|
|
#[cfg(feature = "mastodon")]
|
|
pub mod mastodon;
|
|
|
|
#[cfg(not(feature = "mastodon"))]
|
|
pub mod mastodon {
|
|
pub trait MastodonRouter {
|
|
fn mastodon_routes(self) -> Self where Self: Sized { self }
|
|
}
|
|
|
|
impl MastodonRouter for axum::Router<crate::server::Context> {}
|
|
}
|