about summary refs log tree commit diff
path: root/app/controllers/admin
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-11-28 18:45:13 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-11-28 18:45:13 +0100
commit27fc49d74546d689307e1e712e0b46ccce98867b (patch)
treed7eca67f2a322d656c22fced15e722e7b46f2da3 /app/controllers/admin
parent7e5e33df48e507e18a226edc8dfecbf554d38647 (diff)
Add simple admin overview of PuSH subscriptions
Diffstat (limited to 'app/controllers/admin')
-rw-r--r--app/controllers/admin/pubsubhubbub_controller.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/controllers/admin/pubsubhubbub_controller.rb b/app/controllers/admin/pubsubhubbub_controller.rb
new file mode 100644
index 000000000..fae05bf9d
--- /dev/null
+++ b/app/controllers/admin/pubsubhubbub_controller.rb
@@ -0,0 +1,11 @@
+# frozen_string_literal: true
+
+class Admin::PubsubhubbubController < ApplicationController
+  before_action :require_admin!
+
+  layout 'public'
+
+  def index
+    @subscriptions = Subscription.includes(:account).paginate(page: params[:page], per_page: 40)
+  end
+end