diff options
author | Claire <claire.github-309c@sitedethib.com> | 2021-11-26 23:41:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-26 23:41:01 +0100 |
commit | 4aec8087c71a623abdf201bbc2619507a6b02374 (patch) | |
tree | 931f4c972e55ec032f3f5f6b58621d0380a92a5e /app/controllers/api/proofs_controller.rb | |
parent | 97151840b02499a0cec1360907a6b86a1df02b3b (diff) | |
parent | ca5d78816bb31454de28480dec5c6384ed259eef (diff) |
Merge pull request #1640 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/controllers/api/proofs_controller.rb')
-rw-r--r-- | app/controllers/api/proofs_controller.rb | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/app/controllers/api/proofs_controller.rb b/app/controllers/api/proofs_controller.rb deleted file mode 100644 index dd32cd577..000000000 --- a/app/controllers/api/proofs_controller.rb +++ /dev/null @@ -1,23 +0,0 @@ -# frozen_string_literal: true - -class Api::ProofsController < Api::BaseController - include AccountOwnedConcern - - skip_before_action :require_authenticated_user! - - 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 |