add routes for getting recently added items

This commit is contained in:
mungai-njoroge
2023-12-02 01:59:03 +03:00
parent 7749b4fc3c
commit b03e721ee5
9 changed files with 198 additions and 4 deletions
+10
View File
@@ -0,0 +1,10 @@
from flask import Blueprint
from flask_restful import Api
from .recents import RecentlyAdded
api_bp = Blueprint("home", __name__, url_prefix="/home")
api = Api(api_bp)
api.add_resource(RecentlyAdded, "/recents/added")