Skip to content

Commit

Permalink
Add Queue resource to /api/data/queue path
Browse files Browse the repository at this point in the history
  • Loading branch information
campb303 committed Jun 17, 2021
1 parent 7a1c7b8 commit 20bdc00
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, Item
from .resources import Login, RefreshAccessToken, Item, Queue

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

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

0 comments on commit 20bdc00

Please sign in to comment.