server: update project routes and main

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: If365e10bfab695d3ea2360e239aeab6b6a6a6964
This commit is contained in:
raf 2026-02-07 20:19:05 +03:00
commit e2abc331d1
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
2 changed files with 108 additions and 4 deletions

View file

@ -57,9 +57,10 @@ async fn main() -> anyhow::Result<()> {
fc_common::bootstrap::run(db.pool(), &config.declarative).await?;
let state = AppState {
pool: db.pool().clone(),
config: config.clone(),
sessions: std::sync::Arc::new(dashmap::DashMap::new()),
pool: db.pool().clone(),
config: config.clone(),
sessions: std::sync::Arc::new(dashmap::DashMap::new()),
http_client: reqwest::Client::new(),
};
let app = routes::router(state, &config.server);