Files
material-api/web/core/extensions.py
2024-05-29 10:21:31 +08:00

33 lines
721 B
Python

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")