identity_proofs_controller.rb 390 B

1234567891011121314151617
  1. # frozen_string_literal: true
  2. class Api::V1::Accounts::IdentityProofsController < Api::BaseController
  3. before_action :require_user!
  4. before_action :set_account
  5. def index
  6. @proofs = @account.identity_proofs.active
  7. render json: @proofs, each_serializer: REST::IdentityProofSerializer
  8. end
  9. private
  10. def set_account
  11. @account = Account.find(params[:account_id])
  12. end
  13. end