You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
410 B

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