Skip to content

Commit

Permalink
Add QueueList resource to API
Browse files Browse the repository at this point in the history
  • Loading branch information
campb303 committed Jun 21, 2021
1 parent 74c7453 commit 82ac80a
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, Queue
from .resources import Login, RefreshAccessToken, Item, Queue, QueueList

app = Flask(__name__)
api = Api(app)
Expand Down Expand Up @@ -33,4 +33,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(Queue, "/api/data/<string:queues>")
api.add_resource(Queue, "/api/data/<string:queues>")
api.add_resource(QueueList, "/api/data/get_queues")

0 comments on commit 82ac80a

Please sign in to comment.