Add project files.
This commit is contained in:
@@ -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}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user