tsk-17: Add ICARUS_AUTH_BASE_API_URL env key #18

Merged
phoenix merged 6 commits from tsk-17 into main 2025-08-14 22:58:46 +00:00
2 changed files with 4 additions and 2 deletions
Showing only changes of commit c68eb36bc1 - Show all commits

View File

@@ -30,5 +30,6 @@ pub async fn get_icarus_base_api_url() -> String {
pub async fn get_icarus_auth_base_api_url() -> String {
dotenvy::dotenv().ok();
std::env::var(crate::keys::ICARUS_AUTH_BASE_API_URL).expect(crate::keys::error::ICARUS_AUTH_BASE_API_URL)
std::env::var(crate::keys::ICARUS_AUTH_BASE_API_URL)
.expect(crate::keys::error::ICARUS_AUTH_BASE_API_URL)
}

View File

@@ -31,5 +31,6 @@ pub mod error {
pub const SECRET_KEY: &str = concatcp!(super::SECRET_KEY, " ", GENERAL_ERROR);
pub const ROOT_DIRECTORY: &str = concatcp!(super::ROOT_DIRECTORY, " ", GENERAL_ERROR);
pub const ICARUS_BASE_API_URL: &str = concatcp!(super::ICARUS_BASE_API_URL, " ", GENERAL_ERROR);
pub const ICARUS_AUTH_BASE_API_URL: &str = concatcp!(super::ICARUS_AUTH_BASE_API_URL, " ", GENERAL_ERROR);
pub const ICARUS_AUTH_BASE_API_URL: &str =
concatcp!(super::ICARUS_AUTH_BASE_API_URL, " ", GENERAL_ERROR);
}