refactor: http-axum split into api/html/federation modules, router.rs, templates per page group

This commit is contained in:
2026-10-25 21:46:03 +01:00
parent a931fb548f
commit 614aec8df9
97 changed files with 5317 additions and 5160 deletions

View File

@@ -7,7 +7,7 @@ use domain::ports::{DiaryExporter, DocumentParser, EventPublisher};
use domain::value_objects::InstanceIdentity;
use export::ExportAdapter;
use http_axum::context::AppContext;
use http_axum::{openapi, routes, state::AppState};
use http_axum::{openapi, router, state::AppState};
use importer::ImporterDocumentParser;
use rss::RssAdapter;
@@ -140,7 +140,7 @@ async fn assemble(
app_ctx,
rss_renderer: Arc::new(RssAdapter::new(config.server.base_url.clone())),
};
Ok(openapi::serve(routes::build_router(
Ok(openapi::serve(router::build_router(
state,
social.ap_router,
)))