From b50ce98412c1f255c7ef4eb4132b1105c573d932 Mon Sep 17 00:00:00 2001 From: Justin Campbell Date: Wed, 16 Jun 2021 14:17:38 -0400 Subject: [PATCH] Add login resource to api at /api/login --- src/webqueue2api/api/app.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/webqueue2api/api/app.py b/src/webqueue2api/api/app.py index d9984c0..c77c681 100644 --- a/src/webqueue2api/api/app.py +++ b/src/webqueue2api/api/app.py @@ -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__) @@ -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) \ No newline at end of file +tokenManager = JWTManager(app) + +api.add_resource(Login, "/api/login") \ No newline at end of file