升级后端并开源UI

This commit is contained in:
pycook
2019-08-28 20:34:10 +08:00
committed by pycook
parent 02c01f60bf
commit 20fd6393e4
114 changed files with 5243 additions and 4543 deletions

21
api/extensions.py Normal file
View File

@@ -0,0 +1,21 @@
# -*- coding:utf-8 -*-
from flask_bcrypt import Bcrypt
from flask_caching import Cache
from flask_login import LoginManager
from flask_migrate import Migrate
from flask_sqlalchemy import SQLAlchemy
from flask_cors import CORS
from celery import Celery
from api.lib.utils import RedisHandler
bcrypt = Bcrypt()
login_manager = LoginManager()
db = SQLAlchemy()
migrate = Migrate()
cache = Cache()
celery = Celery()
cors = CORS(supports_credentials=True)
rd = RedisHandler(prefix="CMDB_CI") # TODO