Files
Telegram-Bot-Template/Controllers/ExampleController.cs
Dmitriy yawaflua Andreev 72ac5a8429 Fix errors and add commas,
2024-07-30 22:32:12 +03:00

25 lines
563 B
C#

using Microsoft.AspNetCore.Mvc;
namespace TG_Bot_Template.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!");
}
}
}