diff options
| author | mrw1593 <botahamec@outlook.com> | 2023-03-19 13:23:20 -0400 |
|---|---|---|
| committer | mrw1593 <botahamec@outlook.com> | 2023-05-29 10:45:26 -0400 |
| commit | 8ec105595db9d2957c7327112e7a0b63d9d59400 (patch) | |
| tree | a53e2e2c375d2d7155c30058a69dd713be4e5905 /src/main.rs | |
| parent | f149374e2c6682ea5b9b1d692b001d6ab5faea4a (diff) | |
Create user
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index dc0f9a7..7cc694d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,6 +2,7 @@ use actix_web::{web::Data, App, HttpServer}; use exun::RawUnexpected; mod api; +mod models; mod services; use services::*; @@ -9,10 +10,12 @@ use services::*; #[actix_web::main] async fn main() -> Result<(), RawUnexpected> { let sql_pool = db::initialize("password_database", "dbuser", "Demo1234").await?; + HttpServer::new(move || { App::new() .app_data(Data::new(sql_pool.clone())) .service(api::liveops()) + .service(api::users()) }) .shutdown_timeout(1) .bind(("127.0.0.1", 8080))? |
