Implement /v1/api/miis?pids= #5

Merged
redbinder0526 merged 6 commits from main into main 2026-04-12 15:53:43 +02:00
Showing only changes of commit a281b56cc8 - Show all commits

Unhardcode mii image URL

red binder 2026-04-12 15:04:26 +02:00

View file

@ -92,7 +92,7 @@ pub async fn get_miis(
.iter()
.map(|(file, img_type)| {
// dummy URL for now
let url = format!("https://dummy.url.com/mii/{}/{}", row.pid, file);
let url = format!("{}/mii/{}/{}", get_mii_img_url(row.pid, "png"), row.pid, file);
MiiImage {
cached_url: url.clone(),
id: mii_id,