You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
386 B
Rust

#[macro_use]
extern crate rocket;
use db::DB;
use dotenv::dotenv;
mod db;
mod routes;
#[rocket::main]
async fn main() {
dotenv().ok();
let db = DB::init().await;
let launch_result = rocket::build()
.manage(db)
.mount("/", routes![
routes::site_index
])
.launch();
launch_result.await.expect("Could not start Rocket");
}