//! Module for getting the HTTP server address and endpoint from
//! environment variables
//!
/// get_server_address
///
/// wrapper for getting the server address from
/// the env var:
/// `API_ENDPOINT`
///
/// change the server address with:
///
/// ```bash
/// export API_ENDPOINT="0.0.0.0:3000"
/// ```
///
/// # Examples
///
/// ```rust
/// use restapi::utils::get_server_address::get_server_address;
/// assert_eq!(
/// get_server_address("api"),
/// std::env::var("API_ENDPOINT")
/// .unwrap_or_else(|_| "0.0.0.0:3000".to_string());
/// ```
///