Skip to content

Commit

Permalink
Add login resource to api at /api/login
Browse files Browse the repository at this point in the history
  • Loading branch information
campb303 committed Jun 16, 2021
1 parent 86ec831 commit b50ce98
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/webqueue2api/api/app.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from flask import Flask
from flask_restful import Api
from flask_jwt_extended import JWTManager
from .resources import Login
from .config import config

app = Flask(__name__)
Expand All @@ -27,4 +28,6 @@
# This is the default value. Adding it for easy reference
app.config["JWT_REFRESH_CSRF_HEADER_NAME"] = "X-CSRF-TOKEN"

tokenManager = JWTManager(app)
tokenManager = JWTManager(app)

api.add_resource(Login, "/api/login")

0 comments on commit b50ce98

Please sign in to comment.