# Copyright (C) 2024 Manuel Bustillo

# frozen_string_literal: true

class CaptchaController < ApplicationController
  skip_before_action :authenticate_user!
  skip_before_action :set_tenant
  def create
    id = LibreCaptcha.new.id
    render json: {
      id:,
      media_url: media_captcha_index_url(id:)
    }, status: :created
  end
end