idk why it works now, help

This commit is contained in:
2023-03-20 19:13:33 +01:00
parent cc6a7aa6d2
commit 8f153fd2b9
15 changed files with 16 additions and 32 deletions

View File

@@ -1,21 +0,0 @@
using MauMau_Server.Mau;
using Microsoft.AspNetCore.Mvc;
namespace MauMau_Server.Controllers;
[ApiController]
[Route("[controller]")]
public class DeckController : ControllerBase
{
[HttpGet("deck")]
public IActionResult GetDeck()
{
return Ok(new Deck().GetUnusedDeck().Select(card => card.ToString()).ToList());
}
[HttpGet("hand")]
public IActionResult GetHand()
{
return Ok(new Deck().DrawCards(8).Select(card => card.ToString()).ToList());
}
}