1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
use crate::util::constant::{HOST};

pub struct Config {}
impl Config {
    pub fn host() -> String {
        HOST.to_owned()
    }

    pub fn get_url(path: &String) -> String {
        Config::host().to_owned() + path.as_str()
    }
}