mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-11 04:16:55 +00:00
update FY bucket paths
This commit is contained in:
1 parent
f6454035d2
commit
40a82142bf
2 files changed
+2
-3
No files matched your search
+1
-1
@@ -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";
|
||||
|
||||
|
||||
+1
-2
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user