mirror of
https://codeberg.org/selfsigned-ash/antifed
synced 2026-07-21 18:49:34 +02:00
🔨 Refactors db connection
This commit is contained in:
+1
-1
@@ -14,7 +14,7 @@ async fn index() -> &'static str {
|
||||
fn rocket() -> _ {
|
||||
dotenv::dotenv().ok();
|
||||
let db_path = dotenv::var("DB_PATH").expect("DB_PATH is not set");
|
||||
let db = db::new_conn(&db_path);
|
||||
let db = db::Conn::new(&db_path);
|
||||
|
||||
rocket::build().mount("/", routes![index])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user