Skip to content

Commit

Permalink
Add HTTPResource to /api/error/<int:response_code> path
Browse files Browse the repository at this point in the history
  • Loading branch information
campb303 committed Jul 12, 2021
1 parent bb445a3 commit 75b0370
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, QueueList
from .resources import Login, RefreshAccessToken, Item, Queue, QueueList, HTTPResponse

app = Flask(__name__)
api = Api(app)
Expand Down Expand Up @@ -34,4 +34,5 @@
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(QueueList, "/api/data/get_queues")
api.add_resource(QueueList, "/api/data/get_queues")
api.add_resource(HTTPResponse, "/api/error/<int:response_code>")

0 comments on commit 75b0370

Please sign in to comment.