Removing environment and keys modules

This commit is contained in:
kdeng00
2025-06-01 19:29:49 -04:00
parent c3dddcd788
commit 4e2a9101cb
3 changed files with 0 additions and 17 deletions
-9
View File
@@ -1,9 +0,0 @@
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)
}
-6
View File
@@ -1,6 +0,0 @@
pub const DBURL: &str = "DATABASE_URL";
pub const ROOT_DIRECTORY: &str = "ROOT_DIRECTORY";
pub mod error {
pub const ERROR: &str = "DATABASE_URL must be set in .env";
}
-2
View File
@@ -1,6 +1,4 @@
pub mod callers;
pub mod environment;
pub mod keys;
pub mod db {