2023-04-03 17:21:34 +02:00
|
|
|
use rot::rest;
|
2023-04-03 16:11:26 +02:00
|
|
|
use sqlx::SqlitePool;
|
2023-03-26 14:40:56 +02:00
|
|
|
|
2023-02-08 16:25:06 +01:00
|
|
|
#[macro_use]
|
|
|
|
extern crate rocket;
|
|
|
|
|
|
|
|
#[launch]
|
|
|
|
async fn rocket() -> _ {
|
2023-03-04 11:20:12 +01:00
|
|
|
env_logger::init();
|
2023-03-26 14:40:56 +02:00
|
|
|
|
2023-04-03 16:11:26 +02:00
|
|
|
//let pool = SqlitePool::connect(":memory:").await.unwrap();
|
|
|
|
let pool = SqlitePool::connect("db.sqlite").await.unwrap(); //TODO: fixme
|
|
|
|
|
|
|
|
rest::start(pool)
|
2023-02-08 16:25:06 +01:00
|
|
|
}
|