work-tracing/app/views/dashboard.py
2025-05-16 17:55:30 +04:00

34 lines
815 B
Python

"""
Web routes for the dashboard interface.
This module provides the HTML routes for serving the dashboard interface.
"""
from flask import Blueprint, current_app, render_template
# 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")
# Redundant healthcheck removed, one exists in app/__init__.py
# @views_bp.route('/healthcheck')
# def healthcheck():
# """
# Simple health check endpoint for monitoring.
#
# Returns:
# JSON: Status indicator
# """
# return {'status': 'ok'}, 200