mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-30 22:11:41 +01:00
52b55dabbb
This is lacking tests (and proper icons), but can talk to a debug provider.
21 lines
494 B
Ruby
21 lines
494 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Admin::Fasp::Debug::CallbacksController < Admin::BaseController
|
|
def index
|
|
authorize [:admin, :fasp, :provider], :update?
|
|
|
|
@callbacks = Fasp::DebugCallback
|
|
.includes(:fasp_provider)
|
|
.order(created_at: :desc)
|
|
end
|
|
|
|
def destroy
|
|
authorize [:admin, :fasp, :provider], :update?
|
|
|
|
callback = Fasp::DebugCallback.find(params[:id])
|
|
callback.destroy
|
|
|
|
redirect_to admin_fasp_debug_callbacks_path
|
|
end
|
|
end
|