Files
mastodon/app/controllers/api/v1/profiles_controller.rb
2026-02-20 10:16:04 +00:00

12 lines
313 B
Ruby

# frozen_string_literal: true
class Api::V1::ProfilesController < Api::BaseController
before_action -> { doorkeeper_authorize! :profile, :read, :'read:accounts' }
before_action :require_user!
def show
@account = current_account
render json: @account, serializer: REST::ProfileSerializer
end
end