mastodon/app/controllers/api/fasp/debug/v0/callback/responses_controller.rb
David Roetzel 530b88198d
First tiny steps towards FASP integration
This is lacking tests (and proper icons), but can talk
to a debug provider.
2025-03-06 14:08:38 +01:00

16 lines
350 B
Ruby

# frozen_string_literal: true
class Api::Fasp::Debug::V0::Callback::ResponsesController < Api::Fasp::BaseController
def create
Fasp::DebugCallback.create(
fasp_provider: current_provider,
ip: request.remote_ip,
request_body: request.raw_post
)
respond_to do |format|
format.json { head 201 }
end
end
end