Files
Telegram-Bot-Template/Controllers/ExampleController.cs
Dmitriy yawaflua Andreev 46714173c8 Add readme and template base
2024-07-30 23:01:30 +03:00

25 lines
565 B
C#

using Microsoft.AspNetCore.Mvc;
namespace $safeprojectname$.Controllers
{
/// <summary>
/// Example controller
/// </summary>
[ApiController]
[Route("[controller]")]
public class ExampleController : ControllerBase
{
/// <summary>
/// Just example endpoing
/// </summary>
/// <returns></returns>
[HttpGet("ping")]
[Produces("application/json")]
[ProducesResponseType(200)]
public async Task<IActionResult> Pong()
{
return Ok("Pong!");
}
}
}