using Microsoft.AspNetCore.Mvc; using PrivaPub.Api.Mastodon.Infrastructure; using PrivaPub.Api.Mastodon.Mappers; namespace PrivaPub.Api.Mastodon.Controllers { public partial class AccountsController : MastodonController { readonly MastodonMapper _mapper; public AccountsController(MastodonMapper mapper) { _mapper = mapper; } [HttpGet("/api/v1/accounts/verify_credentials"), Scope("read:accounts")] public async Task VerifyCredentials(CancellationToken token) => Json(await _mapper.Local(Me, withSource: true, token)); } }