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
22 lines
411 B
# frozen_string_literal: true
|
|
|
|
class Api::ProofsController < Api::BaseController
|
|
include AccountOwnedConcern
|
|
|
|
before_action :set_provider
|
|
|
|
def index
|
|
render json: @account, serializer: @provider.serializer_class
|
|
end
|
|
|
|
private
|
|
|
|
def set_provider
|
|
@provider = ProofProvider.find(params[:provider]) || raise(ActiveRecord::RecordNotFound)
|
|
end
|
|
|
|
def username_param
|
|
params[:username]
|
|
end
|
|
end
|