9 lines
211 B
Rust
9 lines
211 B
Rust
use crate::config::AppConfig;
|
|
use crate::error::AppResult;
|
|
|
|
impl AppConfig {
|
|
pub fn app_url(&self) -> AppResult<String> {
|
|
self.get_env_or::<String>("APP_URL", "http://localhost:8000".into())
|
|
}
|
|
}
|