config/routes.rb in super_settings-0.0.0.rc1 vs config/routes.rb in super_settings-0.0.1.rc1
- old
+ new
@@ -1,9 +1,11 @@
# frozen_string_literal: true
SuperSettings::Engine.routes.draw do
controller :settings do
- get "/", action: :root, as: :root
+ if SuperSettings::Configuration.instance.controller.web_ui_enabled?
+ get "/", action: :root, as: :root
+ end
get "/settings", action: :index
post "/settings", action: :update
get "/setting", action: :show
get "/setting/history", action: :history
get "/settings/last_updated_at", action: :last_updated_at