mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 12:33:03 +00:00
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
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
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>")
|
||||
Reference in New Issue
Block a user