26 lines
601 B
C#
26 lines
601 B
C#
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}");
|
|
}
|
|
}
|
|
}
|
|
}
|