using Microsoft.AspNetCore.Mvc;

namespace CalledIt.Api.Controllers;

[ApiController]
[Route("api/[controller]")]
public sealed class StatusController : ControllerBase
{
    [HttpGet(Name = "GetStatus")]
    [EndpointSummary("Get API status")]
    [EndpointDescription("Returns a plain-text status string for quick health checks.")]
    [Produces("text/plain")]
    [ProducesResponseType(typeof(string), StatusCodes.Status200OK)]
    public ActionResult<string> GetStatus()
    {
        return Ok("running");
    }
}
