The code powering m.abunchtell.com https://m.abunchtell.com
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.
 
 
 
 

22 lines
411 B

  1. # frozen_string_literal: true
  2. class Api::ProofsController < Api::BaseController
  3. include AccountOwnedConcern
  4. before_action :set_provider
  5. def index
  6. render json: @account, serializer: @provider.serializer_class
  7. end
  8. private
  9. def set_provider
  10. @provider = ProofProvider.find(params[:provider]) || raise(ActiveRecord::RecordNotFound)
  11. end
  12. def username_param
  13. params[:username]
  14. end
  15. end