update FY bucket paths

This commit is contained in:
Kasisnu committed 2024-11-22 13:40:21 +05:30
1 parent f6454035d2
commit 40a82142bf
2 files changed
+2 -3

No files matched your search

@@ -2,7 +2,7 @@ use once_cell::sync::Lazy;
use url::Url;
//const FAKEYOU_CDN_STR: &str = "https://storage.googleapis.com/dev-vocodes-public";
const FAKEYOU_CDN_STR: &str = "https://cdn.fakeyou.com";
const FAKEYOU_CDN_STR: &str = "https://cdn-2.fakeyou.com";
const STORYTELLER_CDN_STR: &str = "https://cdn.storyteller.ai";
@@ -5,7 +5,7 @@ use errors::AnyhowResult;
pub fn bucket_url_from_str_path(
bucket_path: &str,
) -> AnyhowResult<Url> {
let url = format!("https://storage.googleapis.com/vocodes-public{}", bucket_path);
let url = format!("https://cdn-2.fakeyou.com{}", bucket_path);
let url = Url::parse(&url)?;
Ok(url)
}
@@ -14,7 +14,6 @@ pub fn bucket_url_from_str_path(
mod tests {
use url::Url;
use bucket_paths::legacy::typified_paths::public::media_files::bucket_file_path::MediaFileBucketPath;
use crate::http_server::web_utils::bucket_urls::bucket_url_from_str_path::bucket_url_from_str_path;
#[test]