1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-02-07 09:47:04 +00:00
comunicapiv3/src/utils/user_data_utils.rs

12 lines
281 B
Rust

//! # User data utilities
//!
//! @author Pierre Hubert
use crate::data::config::conf;
/// Get the full URL to a user data file
///
/// `uri` should contain the path to the target resource
pub fn user_data_url(uri: &str) -> String {
format!("{}{}", conf().storage_url, uri)
}