from flask import Blueprint from app.store.albums import AlbumStore as Store api = Blueprint("colors", __name__, url_prefix="/colors") @api.route("/album/") def get_album_color(albumhash: str): album = Store.get_album_by_hash(albumhash) return { "color": album.colors[0] }