yree 0.1.0

A crate for global constants and helpers for Yree.
Documentation
1
2
3
4
5
6
7
8
pub const BASE_URL: &str = "https://yree.io";
pub const API_PATH: &str = "/api/v1";

/// Returns the full API URL by concatenating `BASE_URL` and `API_PATH`.
pub fn full_api_url() -> String {
    format!("{}{}", BASE_URL, API_PATH)
}