From ff389fe18b3eb9eef54c69f201d96e940eb82a23 Mon Sep 17 00:00:00 2001 From: mrw1593 Date: Sun, 14 May 2023 10:28:20 -0400 Subject: Update documentation --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index d454a8c..4b8762d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -9,9 +9,11 @@ use services::*; #[actix_web::main] async fn main() -> Result<(), RawUnexpected> { + // initialize the database let db_url = secrets::database_url()?; let sql_pool = db::initialize(&db_url).await?; + // start the server HttpServer::new(move || { App::new() .app_data(Data::new(sql_pool.clone())) -- cgit v1.2.3