2
0
mirror of synced 2025-01-13 01:54:07 +00:00
2024-08-21 13:59:54 +02:00

26 lines
553 B
C#

using Microsoft.AspNetCore.Mvc;
namespace MarketInsights.Controllers
{
[ApiController]
[Route("[controller]")]
public class MarketController : ControllerBase
{
private readonly AppState appState;
public MarketController(AppState appState)
{
this.appState = appState;
}
/// <summary>
/// Gets the most recent market overview.
/// </summary>
[HttpGet]
public MarketOverview Get()
{
return appState.MarketOverview;
}
}
}