swingmusic/app/api/getall/__init__.py
mungai-njoroge 336360d509 add routes to get all albums and artists with sort
+ rewrite load all albums + artist logic with itertools.groupby
+ add a function to convert seconds to string
2023-12-08 09:20:51 +03:00

11 lines
211 B
Python

from flask import Blueprint
from flask_restful import Api
from .resources import Albums
api_bp = Blueprint("getall", __name__, url_prefix="/getall")
api = Api(api_bp)
api.add_resource(Albums, "/<itemtype>")