use cloud mix images

This commit is contained in:
cwilvx
2024-10-29 22:40:30 +03:00
parent fe09a8a8ae
commit f6f66c571c
5 changed files with 91 additions and 5 deletions
+18
View File
@@ -140,3 +140,21 @@ def send_playlist_image(path: PlaylistImagePath):
"""
folder = Paths.get_playlist_img_path()
return send_file_or_fallback(folder, path.imgpath, "playlist.svg")
# MIXES
@api.get("/mix/medium/<imgpath>")
def send_md_mix_image(path: ImagePath):
"""
Get medium mix image
"""
folder = Paths.get_md_mixes_img_path()
return send_file_or_fallback(folder, path.imgpath, "playlist.svg")
@api.get("/mix/small/<imgpath>")
def send_sm_mix_image(path: ImagePath):
"""
Get small mix image
"""
folder = Paths.get_sm_mixes_img_path()
return send_file_or_fallback(folder, path.imgpath, "playlist.svg")