More additions, lucky card based on day, redo of migrations because i messed up
This commit is contained in:
@@ -4,6 +4,8 @@ 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
|
||||
@@ -12,10 +14,21 @@ namespace TOOHUCardAPI.Controllers
|
||||
[ApiController]
|
||||
public class GameConfigController : ControllerBase
|
||||
{
|
||||
private readonly GameConfigurationService _gameConfigurationService;
|
||||
private readonly ILogger<GameConfigController> _logger;
|
||||
|
||||
public GameConfigController(GameConfigurationService gameConfigurationService, ILogger<GameConfigController> logger)
|
||||
{
|
||||
_gameConfigurationService = gameConfigurationService;
|
||||
_logger = logger;
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
public async Task<GameConfigResponse> GetGameConfig()
|
||||
{
|
||||
return new GameConfigResponse();
|
||||
var response = await _gameConfigurationService.GetGameConfiguration();
|
||||
_logger.LogInformation("Game config fetched");
|
||||
return response;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user