feat(Backend): update API gateway and websocket hubs
This commit is contained in:
@@ -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
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user