mirror of
https://github.com/yawaflua/Telegram-Bot-Template.git
synced 2025-12-09 03:49:30 +02:00
25 lines
563 B
C#
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!");
|
|
}
|
|
}
|
|
}
|