2
0
mirror of synced 2025-01-29 17:55:10 +00:00

26 lines
553 B
C#
Raw Normal View History

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