add methods to get recently played items

This commit is contained in:
mungai-njoroge
2023-12-03 20:35:13 +03:00
parent 5a420214f2
commit ddfa7f1b03
10 changed files with 277 additions and 101 deletions
+2 -1
View File
@@ -1,10 +1,11 @@
from flask import Blueprint
from flask_restful import Api
from .recents import RecentlyAdded
from .recents import RecentlyAdded, RecentlyPlayed
api_bp = Blueprint("home", __name__, url_prefix="/home")
api = Api(api_bp)
api.add_resource(RecentlyAdded, "/recents/added")
api.add_resource(RecentlyPlayed, "/recents/played")