using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using System.Threading.Tasks; namespace FinlyticBackend.Controllers; [ApiController] [Route("api/v1/[controller]")] [Authorize(Roles = "Admin")] public class DashboardController : ControllerBase { /// /// Retrieves global statistics aggregated from all microservices. /// Currently returns mocked data for UI development. /// [HttpGet("stats")] public IActionResult GetGlobalStats() { return Ok(new { totalAssetsLoaded = 12450, totalNewsArticles = 8340, activeTrades = 12, systemUptimeHours = 342, sentimentAnalysesCompleted = 45000, technicalAnalysesCompleted = 120000 }); } }