mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-21 20:44:18 +00:00
Fixed lack of JWT initialization
This commit is contained in:
parent
06a59dc52a
commit
d1f9a89ae3
1 changed files with 4 additions and 0 deletions
|
@ -12,6 +12,10 @@ from flask_jwt_extended import *
|
|||
from .app import app
|
||||
|
||||
Base.init_app(app=app)
|
||||
jwt = JWTManager(app)
|
||||
cors = CORS(app)
|
||||
app.config['CORS_HEADERS'] = 'Content-Type'
|
||||
|
||||
|
||||
reverse_proxy_app = werkzeug.middleware.proxy_fix.ProxyFix(app=app, x_for=1, x_proto=0, x_host=1, x_port=0, x_prefix=0)
|
||||
# Routes setup
|
||||
|
|
Loading…
Reference in a new issue