30 lines
741 B
Python
30 lines
741 B
Python
"""
|
|
Web routes for the dashboard interface.
|
|
|
|
This module provides the HTML routes for serving the dashboard interface.
|
|
"""
|
|
from flask import Blueprint, render_template, current_app
|
|
|
|
# Create a blueprint for dashboard views
|
|
views_bp = Blueprint('views', __name__, url_prefix='/')
|
|
|
|
@views_bp.route('/')
|
|
def dashboard():
|
|
"""
|
|
Renders the main dashboard interface.
|
|
|
|
Returns:
|
|
HTML template: The dashboard template
|
|
"""
|
|
current_app.logger.info("Dashboard page requested.")
|
|
return render_template('dashboard.html')
|
|
|
|
@views_bp.route('/healthcheck')
|
|
def healthcheck():
|
|
"""
|
|
Simple health check endpoint for monitoring.
|
|
|
|
Returns:
|
|
JSON: Status indicator
|
|
"""
|
|
return {'status': 'ok'}, 200 |