start working on auth

This commit is contained in:
2023-04-03 16:11:26 +02:00
parent 3dbfadb00e
commit d50f3d9746
12 changed files with 485 additions and 106 deletions

View File

@@ -1,4 +1,5 @@
use rot::rest;
use rot::{model::user::Users, rest};
use sqlx::SqlitePool;
#[macro_use]
extern crate rocket;
@@ -7,5 +8,9 @@ extern crate rocket;
async fn rocket() -> _ {
env_logger::init();
rest::start()
//let pool = SqlitePool::connect(":memory:").await.unwrap();
let pool = SqlitePool::connect("db.sqlite").await.unwrap(); //TODO: fixme
let users = Users::new(&pool).await.unwrap(); //TODO: fixme
rest::start(pool)
}