12 lines
246 B
Ruby
12 lines
246 B
Ruby
|
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
|