Compare commits
1 Commits
93642b9bb3
...
v0.3.2
Author | SHA1 | Date | |
---|---|---|---|
d84a8144ae |
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -297,7 +297,7 @@ checksum = "f154ce46856750ed433c8649605bf7ed2de3bc35fd9d2a9f30cddd873c80cb08"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "icarus_envy"
|
name = "icarus_envy"
|
||||||
version = "0.3.1"
|
version = "0.3.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-std",
|
"async-std",
|
||||||
"const_format",
|
"const_format",
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "icarus_envy"
|
name = "icarus_envy"
|
||||||
version = "0.3.1"
|
version = "0.3.2"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
rust-version = "1.88"
|
rust-version = "1.88"
|
||||||
|
|
||||||
|
@@ -27,3 +27,9 @@ pub async fn get_icarus_base_api_url() -> String {
|
|||||||
dotenvy::dotenv().ok();
|
dotenvy::dotenv().ok();
|
||||||
std::env::var(crate::keys::ICARUS_BASE_API_URL).expect(crate::keys::error::ICARUS_BASE_API_URL)
|
std::env::var(crate::keys::ICARUS_BASE_API_URL).expect(crate::keys::error::ICARUS_BASE_API_URL)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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)
|
||||||
|
}
|
||||||
|
@@ -18,6 +18,9 @@ pub const ROOT_DIRECTORY: &str = "ROOT_DIRECTORY";
|
|||||||
// Environment key for icarus api url
|
// Environment key for icarus api url
|
||||||
pub const ICARUS_BASE_API_URL: &str = "ICARUS_BASE_API_URL";
|
pub const ICARUS_BASE_API_URL: &str = "ICARUS_BASE_API_URL";
|
||||||
|
|
||||||
|
// Environment key for icarus auth api url
|
||||||
|
pub const ICARUS_AUTH_BASE_API_URL: &str = "ICARUS_AUTH_BASE_API_URL";
|
||||||
|
|
||||||
pub mod error {
|
pub mod error {
|
||||||
use const_format::concatcp;
|
use const_format::concatcp;
|
||||||
|
|
||||||
@@ -28,4 +31,6 @@ pub mod error {
|
|||||||
pub const SECRET_KEY: &str = concatcp!(super::SECRET_KEY, " ", GENERAL_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 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_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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user