2018-04-18 16:46:53 -04:00
|
|
|
"""
|
|
|
|
The flask application package.
|
|
|
|
"""
|
|
|
|
|
|
|
|
from flask import Flask
|
|
|
|
from flask_restful import Resource, Api
|
|
|
|
from flask_jwt_extended import JWTManager
|
|
|
|
from master.context.base import Base
|
2018-04-19 01:48:14 -04:00
|
|
|
import json
|
2018-04-18 16:46:53 -04:00
|
|
|
|
|
|
|
app = Flask(__name__)
|
|
|
|
app.config['JWT_SECRET_KEY'] = 'my key!'
|
2018-04-19 01:48:14 -04:00
|
|
|
app.config['PROPAGATE_EXCEPTIONS'] = True
|
2018-04-18 16:46:53 -04:00
|
|
|
jwt = JWTManager(app)
|
|
|
|
api = Api(app)
|
|
|
|
ctx = Base()
|
2018-04-19 01:48:14 -04:00
|
|
|
config = json.load(open('./master/config/master.json'))
|
2018-04-18 16:46:53 -04:00
|
|
|
|
|
|
|
import master.routes
|
|
|
|
import master.views
|