init
This commit is contained in:
32
web/core/extensions.py
Normal file
32
web/core/extensions.py
Normal file
@@ -0,0 +1,32 @@
|
||||
from concurrent.futures import ThreadPoolExecutor
|
||||
|
||||
# from elasticsearch import Elasticsearch
|
||||
# from flasgger import Swagger
|
||||
# from flask_celery import Celery
|
||||
# from flask_cors import CORS
|
||||
from flask_sqlalchemy import SQLAlchemy
|
||||
from flask_siwadoc import SiwaDoc
|
||||
|
||||
import config
|
||||
|
||||
db = SQLAlchemy()
|
||||
|
||||
# swagger = Swagger(template={
|
||||
# "securityDefinitions": {
|
||||
# "Bearer": {
|
||||
# "type": "apiKey",
|
||||
# "name": "Authorization",
|
||||
# "in": "header",
|
||||
# }
|
||||
# },
|
||||
# })
|
||||
|
||||
# executor = ThreadPoolExecutor(4)
|
||||
|
||||
# es = Elasticsearch(config.ES_HOSTS.split(';'), retry_on_timeout=True)
|
||||
|
||||
# celery = Celery()
|
||||
|
||||
# cors = CORS()
|
||||
|
||||
siwa = SiwaDoc(title="evidence_api", description="evidence_api")
|
Reference in New Issue
Block a user