about summary refs log tree commit diff
path: root/app/controllers/api/v1/preferences_controller.rb
blob: 077d39f5d740a4533bb83f62c79a6edfff12b362 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

class Api::V1::PreferencesController < Api::BaseController
  before_action -> { doorkeeper_authorize! :read, :'read:accounts' }
  before_action :require_user!

  respond_to :json

  def index
    render json: current_account, serializer: REST::PreferencesSerializer
  end
end