diff --git a/JetHerald/Controllers/EchoController.cs b/JetHerald/Controllers/EchoController.cs new file mode 100644 index 0000000..e9a3015 --- /dev/null +++ b/JetHerald/Controllers/EchoController.cs @@ -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 Get(string msg) + { + await Task.Delay(100); + return Ok(msg); + } + + [HttpPost] + public IActionResult GetSync(string msg) + { + return Ok(msg); + } + } +} \ No newline at end of file