37 lines
1.6 KiB
Python
37 lines
1.6 KiB
Python
from flask import jsonify
|
|
from app.utils.logger import logger
|
|
from app.api.services.base_service import BaseService
|
|
from sqlalchemy import func, desc
|
|
from app.extensions import db
|
|
|
|
|
|
class WebContentsService(BaseService):
|
|
|
|
@staticmethod
|
|
def get_web_contents_data():
|
|
try:
|
|
|
|
web_contents_data = {
|
|
"site_title": "good-title",
|
|
"site_description": "This is site description in the header",
|
|
"site_logo_text": "MY-GOOD-LOGO",
|
|
"site_contact_email": "email@specialemail.com",
|
|
"site_contact_phone": "911 111 1111",
|
|
"site_keywords": "Responsive, HTML5, DSAThemes, Landing, Software, Mobile App, SaaS, Startup, Creative, Digital Product",
|
|
"facebook": "myface.facebook.com",
|
|
"twitter": "mytwit.twitter.com",
|
|
"youtube": "myyou.youtube.com",
|
|
"banner_text": "This is the main business text on the web page",
|
|
"banner_description": "Naira",
|
|
"footer_description": "Any text under the logo on the footer",
|
|
"about_description": "Naira",
|
|
"banner_text": "AMEYE01 marketing that drives results for your business",
|
|
"banner_description": "Mauris donec ociis magnis sapien ipsum sagittis sapien tempor and volute gravida aliquet quaerat vitae"
|
|
}
|
|
|
|
return web_contents_data
|
|
|
|
except Exception as e:
|
|
logger.error(f"An error occurred while getting dashboard data: {str(e)}", exc_info=True)
|
|
return jsonify({"message": "Internal Server Error"}), 500
|