22 lines
567 B
C#
22 lines
567 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace Bitget_Server.Api.Controllers;
|
|
|
|
/// <summary>
|
|
/// 단순 헬스체크. Docker / 로드밸런서에서 사용.
|
|
/// </summary>
|
|
[ApiController]
|
|
[Route("api/health")]
|
|
[Produces("application/json")]
|
|
public class HealthController : ControllerBase
|
|
{
|
|
[HttpGet]
|
|
[ProducesResponseType(StatusCodes.Status200OK)]
|
|
public IActionResult Get() => Ok(new
|
|
{
|
|
status = "ok",
|
|
timestampUtc = DateTime.UtcNow,
|
|
version = typeof(HealthController).Assembly.GetName().Version?.ToString() ?? "unknown"
|
|
});
|
|
}
|