mastodon/app/controllers/admin/fasp/debug_calls_controller.rb
David Roetzel 52b55dabbb
First tiny steps towards FASP integration
This is lacking tests (and proper icons), but can talk
to a debug provider.
2025-01-06 08:58:07 +01:00

20 lines
365 B
Ruby

# frozen_string_literal: true
class Admin::Fasp::DebugCallsController < Admin::BaseController
before_action :set_provider
def create
authorize [:admin, @provider], :update?
@provider.perform_debug_call
redirect_to admin_fasp_providers_path
end
private
def set_provider
@provider = Fasp::Provider.find(params[:provider_id])
end
end