restructure
This commit is contained in:
21
Controllers/MauController.cs
Normal file
21
Controllers/MauController.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user