Added function to get root_directory

This commit is contained in:
kdeng00
2025-05-23 17:43:09 -04:00
parent 81655224b3
commit 01d227dafd
+5
View File
@@ -3,3 +3,8 @@ pub async fn get_db_url() -> String {
dotenvy::dotenv().ok();
std::env::var(crate::keys::DBURL).expect(crate::keys::error::ERROR)
}
pub async fn get_root_directory() -> Result<String, std::env::VarError> {
dotenvy::dotenv().ok();
std::env::var(crate::keys::ROOT_DIRECTORY)
}