Add project files.

This commit is contained in:
Aleksandr Popov
2023-06-24 17:15:56 +02:00
parent 2550bc81d5
commit 32813531e2
17 changed files with 461 additions and 0 deletions
@@ -0,0 +1,25 @@
using Microsoft.AspNetCore.Mvc;
namespace TURN.Services.Chess.Controllers
{
[Route("/[controller]")]
[ApiController]
public class TurnController : ControllerBase
{
/// <summary>
/// Тестовый гет.
/// </summary>
[HttpGet("test/{param}")]
public ActionResult<string> Get(string param)
{
try
{
return Ok(param);
}
catch (Exception ex)
{
return StatusCode(500, $"Internal server error: {ex.Message}");
}
}
}
}