web contents

This commit is contained in:
CHIEFSOFT\ameye
2025-07-27 15:59:40 -04:00
parent 989c53c6be
commit 21eb8ba110
3 changed files with 43 additions and 9 deletions
+9 -9
View File
@@ -4,18 +4,11 @@ from app.api.services import (
RegisterService,
AccountService,
ProductsService,
EligibilityCheckService,
SelectOfferService,
ProvideLoanService,
LoanStatusService,
RepaymentService,
CustomerConsentService,
NotificationCallbackService,
AuthorizationService,
MyProductsService,
ContactService,
OfficeAuthService,
OfficeDashboardService
OfficeDashboardService, WebContentsService
)
from app.utils.logger import logger
from app.api.middlewares import enforce_json, require_auth
@@ -199,7 +192,7 @@ def mycalendar_dash():
def test_check():
data = {"uid": "ok", "token":"jjjfjfjfjfjjf"}
logger.info(f"Member Actions Error: {action_data}")
logger.info(f"Member Actions Error: {data}")
response = AccountService.process_action_request(data)
#response = ProductsService.process_request(data)
return {"status": "ok"}, 200
@@ -244,7 +237,14 @@ def get_subscription_office():
#=====================================================
@api.route('/web/contents', methods=['GET'])
# @token_required
def get_web_contents():
# Call the dashboard service
result = WebContentsService.get_web_contents_data()
return jsonify(result)
#===================================================
# # EligibilityCheck Endpoint
# @api.route("/EligibilityCheck", methods=["POST"])
# @jwt_required()