27 lines
695 B
Python
27 lines
695 B
Python
""" Server-package
|
|
|
|
Initialize app, cors, database and bcrypt (for passwordhashing) and added it to the application.
|
|
Initialize also a singelton for the AccesTokenControler and start the Thread.
|
|
|
|
"""
|
|
from .logger import getLogger
|
|
|
|
LOGGER = getLogger(__name__)
|
|
LOGGER.info("Initialize App")
|
|
|
|
from flask import Flask
|
|
from flask_cors import CORS
|
|
|
|
LOGGER.info("Build APP")
|
|
app = Flask(__name__)
|
|
CORS(app)
|
|
# app.config['SECRET_KEY'] = '0a657b97ef546da90b2db91862ad4e29'
|
|
|
|
from geruecht import routes
|
|
from geruecht.baruser.routes import baruser
|
|
from geruecht.finanzer.routes import finanzer
|
|
|
|
LOGGER.info("Registrate bluebrints")
|
|
app.register_blueprint(baruser)
|
|
app.register_blueprint(finanzer)
|