using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Nexus.Api.Services;

namespace Nexus.Api.Controllers;

[ApiController]
[Route("api/v1/operations")]
public class OperationsController(IOperationsService operationsService) : ControllerBase
{
    [HttpGet("snapshot")]
    [Authorize]
    public async Task<IResult> GetSnapshot(CancellationToken ct)
        => Results.Ok(await operationsService.GetSnapshotAsync(ct));
}
