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

@@ -22,7 +22,7 @@ use domain::{
value_objects::{Email, ExternalMetadataId, PasswordHash, PosterUrl, UserId},
};
use http_axum::context::AppContext;
use http_axum::{routes, state::AppState};
use http_axum::{router, state::AppState};
use http_body_util::BodyExt;
use rss::RssAdapter;
use sqlite::{
@@ -477,7 +477,7 @@ async fn test_app_with(auth: impl AuthService + 'static) -> (Router, SqlitePool)
rss_renderer: Arc::new(RssAdapter::new("http://localhost:3000".into())),
};
let router = routes::build_router(state, axum::Router::new());
let router = router::build_router(state, axum::Router::new());
(router, pool)
}