feat: kill s3
This commit is contained in:
parent
64027f8317
commit
1935b8f6c4
24 changed files with 86 additions and 1228 deletions
14
src/mii_util.rs
Normal file
14
src/mii_util.rs
Normal 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))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue