use rocket::fs::FileServer;
#[rocket::main]
async fn main() {
let clusters = pgml_dashboard::Clusters::new();
clusters
.add(-1, &pgml_dashboard::guards::default_database_url())
.unwrap();
let _ = rocket::build()
.manage(clusters)
.mount("/dashboard/static", FileServer::from("static"))
.mount("/dashboard", pgml_dashboard::paths())
.ignite()
.await
.expect("failed to ignite Rocket")
.launch()
.await
.expect("failed to shut down Rocket");
}