Files
discourse/app/controllers/wizard_controller.rb
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
403 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2016-08-25 13:14:56 -04:00
class WizardController < ApplicationController
2022-06-17 14:50:21 +02:00
requires_login
2022-06-17 14:50:21 +02:00
before_action :ensure_admin
before_action :ensure_wizard_enabled
2016-08-25 13:14:56 -04:00
def index
respond_to do |format|
format.json do
wizard = Wizard::Builder.new(current_user).build
2016-08-25 13:14:56 -04:00
render_serialized(wizard, WizardSerializer)
end
2022-06-17 14:50:21 +02:00
format.html { render body: nil }
end
2016-08-25 13:14:56 -04:00
end
end