mirror of
https://github.com/Jetsparrow/jetherald.git
synced 2026-01-21 07:56:09 +03:00
Debug echo controller
This commit is contained in:
parent
484843b9f7
commit
ff70cda27a
23
JetHerald/Controllers/EchoController.cs
Normal file
23
JetHerald/Controllers/EchoController.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user