wedding-planner/app/controllers/captcha_controller.rb

12 lines
246 B
Ruby
Raw Normal View History

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