mirror of
https://github.com/Jetsparrow/jetherald.git
synced 2026-01-21 07:56:09 +03:00
23 lines
471 B
C#
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);
|
|
}
|
|
}
|
|
} |