(20250620) SMS sending module also ported for internal use.
This commit is contained in:
+7
-2
@@ -75,6 +75,7 @@ from controllers.servers.server import CoreServerController
|
||||
from api_v2.blueprints.cred_and_data.blueprint import cred_and_data_bp
|
||||
from api_v2.blueprints.logs.blueprint import logs_bp
|
||||
from api_v2.blueprints.otp.blueprint import otp_bp
|
||||
from api_v2.blueprints.sms.blueprint import sms_bp
|
||||
from api_v2.blueprints.servers.blueprint import servers_bp
|
||||
from api_v2.blueprints.test.blueprint import test_bp
|
||||
|
||||
@@ -104,6 +105,7 @@ app = cors(app)
|
||||
app.register_blueprint(cred_and_data_bp, url_prefix = f"/{MODULE_BASE}")
|
||||
app.register_blueprint(logs_bp, url_prefix = f"/{MODULE_BASE}/logs")
|
||||
app.register_blueprint(otp_bp, url_prefix = f"/{MODULE_BASE}/otp")
|
||||
app.register_blueprint(sms_bp, url_prefix = f"/{MODULE_BASE}/sms")
|
||||
app.register_blueprint(servers_bp, url_prefix = f"/{MODULE_BASE}/servers")
|
||||
app.register_blueprint(test_bp, url_prefix = f"/{MODULE_BASE}/test")
|
||||
|
||||
@@ -192,12 +194,15 @@ async def app_startup(**kwargs):
|
||||
# ┣┫┏┓┏┫┓┏ ┃ ┏┓┏┣┓┏┓
|
||||
# ┛┗┗ ┗┻┗┛ ┗┛┗┻┗┛┗┗
|
||||
|
||||
current_app.otp_redis = AsyncRedisCache(
|
||||
current_app.redis_cache = AsyncRedisCache(
|
||||
connection_string = script_cred["redisCache"]["general"]["sentinelJson"],
|
||||
debug = enable_debugging,
|
||||
debug_prefix = "OTP Cache | "
|
||||
debug_prefix = "Redis Cache | "
|
||||
)
|
||||
|
||||
current_app.otp_redis = current_app.redis_cache
|
||||
current_app.rate_limit_cache = current_app.redis_cache
|
||||
|
||||
current_app.printer("Redis ready.")
|
||||
|
||||
# ┏┓ ┓┓
|
||||
|
||||
Reference in New Issue
Block a user