common: improve notifications system

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I084bb95a4eb79d5a15f7c062c112124c6a6a6964
This commit is contained in:
raf 2026-02-07 20:04:39 +03:00
commit 8c1968c863
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
2 changed files with 153 additions and 1 deletions

View file

@ -37,6 +37,7 @@ fn build_app(pool: sqlx::PgPool) -> axum::Router {
pool,
config,
sessions: std::sync::Arc::new(dashmap::DashMap::new()),
http_client: reqwest::Client::new(),
};
fc_server::routes::router(state, &server_config)
}
@ -54,6 +55,7 @@ async fn test_router_no_duplicate_routes() {
pool,
config,
sessions: std::sync::Arc::new(dashmap::DashMap::new()),
http_client: reqwest::Client::new(),
};
let _app = fc_server::routes::router(state, &server_config);
@ -68,6 +70,7 @@ fn build_app_with_config(
pool,
config,
sessions: std::sync::Arc::new(dashmap::DashMap::new()),
http_client: reqwest::Client::new(),
};
fc_server::routes::router(state, &server_config)
}