Token in configuration
This commit is contained in:
@@ -30,20 +30,22 @@ app = Flask(__name__)
|
||||
CORS(app)
|
||||
app.config.from_object("project.config.Config")
|
||||
db = SQLAlchemy(app)
|
||||
app.config['SECRET_KEY'] ='thisisourwondefulkey'
|
||||
|
||||
#jwt_secret = os.getenv("JWT_SECRET")
|
||||
app.config['SECRET_KEY'] = os.getenv("JWT_SECRET") #'thisisourwondefulkey'
|
||||
#print( "aaaa-bbbb--ccccc" )
|
||||
#print( jwt_secret )
|
||||
|
||||
template = {
|
||||
"swagger": "2.0",
|
||||
"info": {
|
||||
"title": "MERMS Core API",
|
||||
"description": "This API was developed using Python Flask, which provides an interface for producing and consuming messages with Apache Kafka topics via HTTP endpoints.",
|
||||
"description": "This API was developed using Python Flask, which provides an interface for core MERMS endpoints.",
|
||||
"version": "1.0"
|
||||
}
|
||||
}
|
||||
|
||||
app.config['SWAGGER'] = {
|
||||
'title': 'Flask Kafka API',
|
||||
'title': 'MERMS API',
|
||||
'uiversion': 2,
|
||||
'template': './resources/flasgger/swagger_ui.html'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user