More additions, lucky card based on day, redo of migrations because i messed up

This commit is contained in:
2021-11-01 14:59:36 -04:00
parent 685f09a889
commit 0b94455b4b
48 changed files with 284 additions and 7404 deletions

View File

@@ -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;
}
}
}