feat(Backend): update API gateway and websocket hubs

This commit is contained in:
2026-08-09 21:32:52 +02:00
parent fdf4b6efcb
commit a9553e9fbf
66 changed files with 188878 additions and 0 deletions
@@ -0,0 +1,29 @@
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
{
/// <summary>
/// Retrieves global statistics aggregated from all microservices.
/// Currently returns mocked data for UI development.
/// </summary>
[HttpGet("stats")]
public IActionResult GetGlobalStats()
{
return Ok(new
{
totalAssetsLoaded = 12450,
totalNewsArticles = 8340,
activeTrades = 12,
systemUptimeHours = 342,
sentimentAnalysesCompleted = 45000,
technicalAnalysesCompleted = 120000
});
}
}