This commit is contained in:
han0
2024-05-29 10:21:31 +08:00
commit 54ac29d27b
119 changed files with 6817 additions and 0 deletions

32
web/core/extensions.py Normal file
View 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")