(20241125) Moved from Nexcom to The CA Office.
This commit is contained in:
+4
-2
@@ -51,7 +51,7 @@ from shared import constants
|
||||
# My utils:
|
||||
from utils_v2.string import json
|
||||
from utils_v2.api import async_quart
|
||||
from utils_v2.datetime import datetime
|
||||
from utils_v2.date_time import date_time
|
||||
from utils_v2.database.async_mongo_v2 import AsyncMongo
|
||||
from utils_v2.cache.async_redis_cache_v2 import AsyncRedisCache
|
||||
from utils_v2.api.async_quart import (
|
||||
@@ -72,6 +72,7 @@ import httpx
|
||||
from icecream import IceCreamDebugger
|
||||
|
||||
# All the blueprints:
|
||||
from api.blueprints.mail.callback import mail_callback_bp
|
||||
from api.blueprints.test.callback import test_callback_bp
|
||||
|
||||
|
||||
@@ -97,6 +98,7 @@ APP_VERSION = constants.APP_VERSION
|
||||
# The Quart app:
|
||||
app = Quart(__name__)
|
||||
app = cors(app)
|
||||
app.register_blueprint(mail_callback_bp, url_prefix = f"/{MODULE_BASE}/mail")
|
||||
app.register_blueprint(test_callback_bp, url_prefix = f"/{MODULE_BASE}/test")
|
||||
|
||||
|
||||
@@ -295,7 +297,7 @@ async def memory_metrics():
|
||||
"unit": {
|
||||
"mem": "MB"
|
||||
},
|
||||
"ts": datetime.get_current_ist_date_time(as_string = True)
|
||||
"ts": date_time.get_current_ist_date_time(as_string = True)
|
||||
}
|
||||
|
||||
# Done here:
|
||||
|
||||
Reference in New Issue
Block a user