# -*- coding: utf-8 -*-
"""
service_monitor.py — 服务监测模块路由

占位模块，后续实现 SSH 连接监测服务器服务状态、输出报告功能。
"""

from flask import Blueprint, render_template, session

from decorators import page_login_required
from utils.logger import get_logger

logger = get_logger(__name__)

bp = Blueprint('service-monitor', __name__)


@bp.route('/service-monitor')
@page_login_required
def service_monitor_page():
    """服务监测主页（占位）"""
    user = session.get('user', {})
    return render_template('service_monitor.html', user=user)
