feat: kill s3

This commit is contained in:
DJMrTV 2025-06-06 10:25:16 +02:00
commit 1935b8f6c4
24 changed files with 86 additions and 1228 deletions

14
src/mii_util.rs Normal file
View file

@ -0,0 +1,14 @@
use std::env;
use once_cell::sync::Lazy;
pub static MII_PROVIDER_SERVER_URL: Lazy<Box<str>> = Lazy::new(||
env::var("MII_PROVIDER_SERVER_URL").expect("MII_PROVIDER_SERVER_URL not specified").into_boxed_str()
);
fn get_mii_img_url_path(pid: i32, format: &str) -> String{
format!("{}/main.{}", pid, format)
}
pub fn get_mii_img_url(pid: i32, format: &str) -> String{
format!("{}/{}", &*MII_PROVIDER_SERVER_URL, get_mii_img_url_path(pid, format))
}