From 90597f2088ae46e019ae22d2e3f67e87b841ebe1 Mon Sep 17 00:00:00 2001 From: jetsparrow Date: Mon, 12 Aug 2019 21:20:22 +0300 Subject: [PATCH] Debug echo controller --- JetHerald/Controllers/EchoController.cs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 JetHerald/Controllers/EchoController.cs 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