using Microsoft.AspNetCore.Mvc;

namespace Flyshot.Server.Host.Controllers;

/// <summary>
/// 提供宿主基础探活与诊断接口。
/// </summary>
[ApiController]
[Tags("基础与状态")]
public sealed class HealthController : ControllerBase
{
    /// <summary>
    /// 返回宿主健康状态。
    /// </summary>
    /// <returns>固定的健康检查 JSON。</returns>
    [HttpGet("/healthz")]
    public IActionResult GetHealth()
    {
        return Ok(new
        {
            status = "ok",
            service = "flyshot-server-host"
        });
    }
}
