summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authormrw1593 <botahamec@outlook.com>2023-05-14 10:28:20 -0400
committermrw1593 <botahamec@outlook.com>2023-05-29 10:45:59 -0400
commitff389fe18b3eb9eef54c69f201d96e940eb82a23 (patch)
treea274cc8e223dcf7e1d78182db28488dd5484e76b /src/main.rs
parentafe8b4e6e2f1e854d8a97d3f62a4b011eea59130 (diff)
Update documentation
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 2 insertions, 0 deletions
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()))