# encoding: utf-8

from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_cors import CORS


import logging

app = Flask(__name__)
CORS(app, resources={r"/*": {"origins": "*"}})

app.config.from_object('config.current')

db = SQLAlchemy(app)

logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)

'''

'''

import application.jwt

import application.routes.config
import application.routes.user
import application.routes.permission
import application.routes.role
import application.routes.access




# after Model defined
db.create_all()
[((10, 6, 10, 21), 'flask.Flask', 'Flask', ({(10, 12, 10, 20): '__name__'}, {}), '(__name__)', False, 'from flask import Flask\n'), ((11, 0, 11, 46), 'flask_cors.CORS', 'CORS', (), '', False, 'from flask_cors import CORS\n'), ((15, 5, 15, 20), 'flask_sqlalchemy.SQLAlchemy', 'SQLAlchemy', ({(15, 16, 15, 19): 'app'}, {}), '(app)', False, 'from flask_sqlalchemy import SQLAlchemy\n'), ((17, 9, 17, 36), 'logging.getLogger', 'logging.getLogger', ({(17, 27, 17, 35): '__name__'}, {}), '(__name__)', False, 'import logging\n')]