mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 11:23:39 +08:00
fcb4e5a1a1
Co-authored-by: David Taylor <david@taylorhq.com>
22 lines
420 B
Ruby
22 lines
420 B
Ruby
# frozen_string_literal: true
|
|
|
|
class WizardController < ApplicationController
|
|
requires_login
|
|
|
|
before_action :ensure_admin
|
|
before_action :ensure_wizard_enabled
|
|
|
|
def index
|
|
respond_to do |format|
|
|
format.json do
|
|
wizard = Wizard::Builder.new(current_user).build
|
|
render_serialized(wizard, WizardSerializer)
|
|
end
|
|
|
|
format.html do
|
|
render body: nil
|
|
end
|
|
end
|
|
end
|
|
end
|