Debug echo controller

This commit is contained in:
jetsparrow 2019-08-12 21:20:22 +03:00
parent 484843b9f7
commit ff70cda27a

View File

@ -0,0 +1,23 @@
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
namespace JetHerald.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class EchoController : ControllerBase
{
[HttpGet]
public async Task<IActionResult> Get(string msg)
{
await Task.Delay(100);
return Ok(msg);
}
[HttpPost]
public IActionResult GetSync(string msg)
{
return Ok(msg);
}
}
}