Add icarus_base_api_url_env (#8)
All checks were successful
Release Tagging / release (push) Successful in 31s

Reviewed-on: #8
Co-authored-by: kdeng00 <kundeng00@pm.me>
Co-committed-by: kdeng00 <kundeng00@pm.me>
This commit is contained in:
2025-06-12 19:14:27 +00:00
committed by phoenix
parent dbe4dc67cb
commit e7e6fd904b
4 changed files with 11 additions and 1 deletions

View File

@@ -18,3 +18,8 @@ pub async fn get_root_directory() -> String {
dotenvy::dotenv().ok();
std::env::var(crate::keys::ROOT_DIRECTORY).expect(crate::keys::error::ROOT_DIRECTORY)
}
pub async fn get_icarus_base_api_url() -> String {
dotenvy::dotenv().ok();
std::env::var(crate::keys::ICARUS_BASE_API_URL).expect(crate::keys::error::ICARUS_BASE_API_URL)
}