filled out #6

Merged
phoenix merged 9 commits from filled_out into devel 2025-06-01 01:18:57 +00:00
Showing only changes of commit 3ccf313355 - Show all commits

View File

@@ -9,6 +9,11 @@ pub async fn get_secret_main_key() -> String {
std::env::var(crate::keys::SECRET_MAIN_KEY).expect(crate::keys::error::SECRET_MAIN_KEY) std::env::var(crate::keys::SECRET_MAIN_KEY).expect(crate::keys::error::SECRET_MAIN_KEY)
} }
pub async fn get_secret_key() -> String {
dotenvy::dotenv().ok();
std::env::var(crate::keys::SECRET_KEY).expect(crate::keys::error::SECRET_KEY)
}
pub async fn get_root_directory() -> String { pub async fn get_root_directory() -> String {
dotenvy::dotenv().ok(); dotenvy::dotenv().ok();
std::env::var(crate::keys::ROOT_DIRECTORY).expect(crate::keys::error::ROOT_DIRECTORY) std::env::var(crate::keys::ROOT_DIRECTORY).expect(crate::keys::error::ROOT_DIRECTORY)