Skip to content

Commit

Permalink
Add RefreshAccessToken resource to /api/token/refresh endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
campb303 committed Jun 16, 2021
1 parent 9b95871 commit a32b46e
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
@@ -1,8 +1,8 @@
from flask import Flask
from flask_restful import Api
from flask_jwt_extended import JWTManager
from .resources import Login
from .config import config
from .resources import Login, RefreshAccessToken

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

tokenManager = JWTManager(app)

api.add_resource(Login, "/api/login")
api.add_resource(Login, "/api/login")
api.add_resource(RefreshAccessToken, "/api/tokens/refresh")

0 comments on commit a32b46e

Please sign in to comment.