Skip to content

Commit

Permalink
Add ItemResource to /api/data/ path
Browse files Browse the repository at this point in the history
  • Loading branch information
campb303 committed Jun 16, 2021
1 parent 48f3795 commit 90a67cb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/webqueue2api/api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from flask_restful import Api
from flask_jwt_extended import JWTManager
from .config import config
from .resources import Login, RefreshAccessToken
from .resources import Login, RefreshAccessToken, ItemResource

app = Flask(__name__)
api = Api(app)
Expand Down Expand Up @@ -31,4 +31,5 @@
tokenManager = JWTManager(app)

api.add_resource(Login, "/api/login")
api.add_resource(RefreshAccessToken, "/api/tokens/refresh")
api.add_resource(RefreshAccessToken, "/api/tokens/refresh")
api.add_resource(ItemResource, "/api/data/<string:queue>/<int:number>")

0 comments on commit 90a67cb

Please sign in to comment.