using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using TOOHUCardAPI.Data.Services; using TOOHUCardAPI.DTO; namespace TOOHUCardAPI.Controllers { [Route("api/[controller]")] [ApiController] public class GameConfigController : ControllerBase { private readonly GameConfigurationService _gameConfigurationService; private readonly ILogger _logger; public GameConfigController(GameConfigurationService gameConfigurationService, ILogger logger) { _gameConfigurationService = gameConfigurationService; _logger = logger; } [HttpGet] public async Task GetGameConfig() { var response = await _gameConfigurationService.GetGameConfiguration(); _logger.LogInformation("Game config fetched"); return response; } } }