rowt/src/main.rs
2023-04-03 16:11:26 +02:00

17 lines
387 B
Rust

use rot::{model::user::Users, rest};
use sqlx::SqlitePool;
#[macro_use]
extern crate rocket;
#[launch]
async fn rocket() -> _ {
env_logger::init();
//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)
}