Added keys and errors

This commit is contained in:
2025-05-31 20:18:23 -04:00
parent f0726b83c9
commit 2a8f30b58b

View File

@@ -1,5 +1,16 @@
// TODO: Change this to snake case
// Environment key for Database management
pub const DBURL: &str = "DATABASE_URL"; pub const DBURL: &str = "DATABASE_URL";
// Environment key for secret main key
// Used for the icarus app
pub const SECRET_MAIN_KEY: &str = "SECRET_MAIN_KEY";
// Environment key for root directory for the icarus app
pub const ROOT_DIRECTORY: &str = "ROOT_DIRECTORY";
pub mod error { pub mod error {
pub const ERROR: &str = "DATABASE_URL must be set in .env"; pub const ERROR: &str = "DATABASE_URL must be set in .env";
pub const SECRET_MAIN_KEY: &str = "SECRET_MAIN_KEY must not be set in environment file";
pub const ROOT_DIRECTORY: &str = "ROOT_DIRECTORY must not be set in environment file";
} }