This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/controllers/wizard_controller.rb
2023-01-09 14:14:59 +00:00

20 lines
403 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 { render body: nil }
end
end
end