cs-codex-dist-tests/Tools/MarketInsights/Controllers/MarketController.cs

26 lines
553 B
C#
Raw Normal View History

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