jetherald/JetHerald/Controllers/EchoController.cs
2019-08-12 21:26:36 +03:00

23 lines
471 B
C#

using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
namespace JetHerald.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class EchoController : ControllerBase
{
[HttpGet]
public IActionResult Get(string msg)
{
Task.Delay(100);
return Ok(msg);
}
[HttpPost]
public IActionResult GetSync(string msg)
{
return Ok(msg);
}
}
}