separation of database (#1)
Reviewed-on: GKaszewski/libertas#1
This commit was merged in pull request #1.
This commit is contained in:
@@ -28,8 +28,10 @@ async fn main() -> anyhow::Result<()> {
|
||||
let addr: SocketAddr = config.server_address.parse()?;
|
||||
|
||||
let app_state = factory::build_app_state(config).await?;
|
||||
let max_upload_size =
|
||||
(app_state.config.max_upload_size_mb.unwrap_or(100) * 1024 * 1024) as usize;
|
||||
|
||||
let app = routes::api_routes().with_state(app_state);
|
||||
let app = routes::api_routes(max_upload_size).with_state(app_state);
|
||||
|
||||
println!("Starting server at http://{}", addr);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user