Environment (#3)

Reviewed-on: #3
Co-authored-by: kdeng00 <kundeng00@pm.me>
Co-committed-by: kdeng00 <kundeng00@pm.me>
This commit is contained in:
kdeng00
2025-05-29 23:15:44 +00:00
committed by phoenix
parent b89633e394
commit f0726b83c9
5 changed files with 30 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
pub async fn get_db_url() -> String {
dotenvy::dotenv().ok();
std::env::var(crate::keys::DBURL).expect(crate::keys::error::ERROR)
}