using Microsoft.AspNetCore.Mvc;

namespace ERPCore.Controllers;

/// <summary>
/// Non-domain metadata endpoint. Confirms the controller pipeline, Swagger and
/// routing are wired; domain endpoints are defined per docs/11-BACKEND-PHASE1.md.
/// </summary>
[ApiController]
[Route("api/[controller]")]
public sealed class MetaController : ControllerBase
{
    [HttpGet]
    public IActionResult Get() => Ok(new
    {
        name = "ERPCore API",
        phase = "Phase 1 — Inventory & Supply Chain",
        version = "v1",
        utc = DateTime.UtcNow
    });
}
