Office Dash data

This commit is contained in:
CHIEFSOFT\ameye
2025-07-21 06:40:59 -04:00
parent 45e7d64963
commit 2b5b7cb8a1
3 changed files with 286 additions and 1 deletions
+9 -1
View File
@@ -14,7 +14,8 @@ from app.api.services import (
AuthorizationService,
MyProductsService,
ContactService,
OfficeAuthService
OfficeAuthService,
OfficeDashboardService
)
from app.utils.logger import logger
from app.api.middlewares import enforce_json, require_auth
@@ -219,6 +220,13 @@ def login():
return jsonify(result[0]), result[1]
return jsonify(result)
@api.route('/office/dashboard', methods=['GET'])
# @token_required
def get_dashboard():
# Call the dashboard service
result = OfficeDashboardService.get_dashboard_data()
return jsonify(result)
#=====================================================
# # EligibilityCheck Endpoint