mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
d43dcbff46
+ fix last updated date bug
14 lines
308 B
Python
14 lines
308 B
Python
from flask import Blueprint
|
|
from app.store.albums import AlbumStore as Store
|
|
|
|
api = Blueprint("colors", __name__, url_prefix="/colors")
|
|
|
|
|
|
@api.route("/album/<albumhash>")
|
|
def get_album_color(albumhash: str):
|
|
album = Store.get_album_by_hash(albumhash)
|
|
|
|
return {
|
|
"color": album.colors[0]
|
|
}
|