refactor: http-axum split into api/html/federation modules, router.rs, templates per page group
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user