""" Project: PARTS Website Author: Edward Middleton-Smith Precision And Research Technology Systems Limited Technology: App Routing Feature: Core - Home Routes Description: Home Page Controller. """ # internal from business_objects.api import API from models.model_view_home import Model_View_Home # external from flask import render_template, jsonify, Blueprint routes_core_home = Blueprint('routes_core_home', __name__) @routes_core_home.route(Model_View_Home.HASH_PAGE_HOME, methods=['GET']) def home(): try: model = Model_View_Home() html_body = render_template('pages/core/_home.html', model = model) except Exception as e: return jsonify(error=str(e)), 403 return html_body