summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authormrw1593 <botahamec@outlook.com>2023-03-19 12:24:28 -0400
committermrw1593 <botahamec@outlook.com>2023-03-19 12:24:28 -0400
commitf149374e2c6682ea5b9b1d692b001d6ab5faea4a (patch)
tree0a54b08b0fe4ce409108ab1af5d1fdc7fa11157f /src/main.rs
parentc00129570baaabe71a3778bc35820e441f51174b (diff)
Implement password hashing
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 5104428..dc0f9a7 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -4,9 +4,11 @@ use exun::RawUnexpected;
mod api;
mod services;
+use services::*;
+
#[actix_web::main]
async fn main() -> Result<(), RawUnexpected> {
- let sql_pool = services::db::initialize("password_database", "dbuser", "Demo1234").await?;
+ let sql_pool = db::initialize("password_database", "dbuser", "Demo1234").await?;
HttpServer::new(move || {
App::new()
.app_data(Data::new(sql_pool.clone()))