server: update project routes and main
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: If365e10bfab695d3ea2360e239aeab6b6a6a6964
This commit is contained in:
parent
5ee3154f8e
commit
e2abc331d1
2 changed files with 108 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue