mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-02-07 17:57:04 +00:00
12 lines
281 B
Rust
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)
|
||
|
}
|