feat: invites
CI / CD / Unit tests (push) Successful in 38s
CI / CD / Build & push Helm chart (push) Successful in 11s
CI / CD / Build & push frontend-static (push) Successful in 31s
CI / CD / Build & push frontend (nginx) (push) Successful in 29s
CI / CD / Build & push backend (push) Successful in 1m49s
CI / CD / Unit tests (push) Successful in 38s
CI / CD / Build & push Helm chart (push) Successful in 11s
CI / CD / Build & push frontend-static (push) Successful in 31s
CI / CD / Build & push frontend (nginx) (push) Successful in 29s
CI / CD / Build & push backend (push) Successful in 1m49s
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using MemeVault.Api.Services;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace MemeVault.Api.Controllers;
|
||||
|
||||
[ApiController]
|
||||
[Route("api/bot")]
|
||||
public sealed class BotController(BotInfoService botInfo) : ControllerBase
|
||||
{
|
||||
/// <summary>
|
||||
/// Возвращает публичный username бота.
|
||||
/// Не требует авторизации — username бота публичен.
|
||||
/// </summary>
|
||||
[HttpGet("info")]
|
||||
public async Task<IActionResult> GetInfo(CancellationToken ct)
|
||||
{
|
||||
var username = await botInfo.GetBotUsernameAsync();
|
||||
return Ok(new { username });
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user