use activitypub_federation::config::{FederationConfig, FederationMiddleware}; use axum::{Router, routing::get}; use tower_http::trace::TraceLayer; use crate::{server::routes::health_check, state::AppHandle}; pub mod routes; pub fn router(state: FederationConfig) -> Router { Router::new() .merge(routes::users::users_router()) .route("/", get(health_check)) .layer(TraceLayer::new_for_http()) .layer(FederationMiddleware::new(state)) }