about summary refs log tree commit diff
path: root/app/controllers/api/proofs_controller.rb
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2021-11-26 23:41:01 +0100
committerGitHub <noreply@github.com>2021-11-26 23:41:01 +0100
commit4aec8087c71a623abdf201bbc2619507a6b02374 (patch)
tree931f4c972e55ec032f3f5f6b58621d0380a92a5e /app/controllers/api/proofs_controller.rb
parent97151840b02499a0cec1360907a6b86a1df02b3b (diff)
parentca5d78816bb31454de28480dec5c6384ed259eef (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.rb23
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