use rocket::routes; use sqlx::PgPool; mod jobs; mod db; mod api; #[rocket::main] async fn main() -> Result<(), rocket::Error> { println!("{}_{} starting up", env!("CARGO_PKG_NAME"), env!("CARGO_PKG_VERSION")); jobs::startup::run_startup_jobs().await; let db_pool = PgPool::connect("postgres://localhost/photoxide").await.unwrap(); let _rocket = rocket::build() .manage(db_pool) .mount("/", routes![api::routes::test::testroute]) .launch() .await?; Ok(()) }