2018-01-14 19:43:26 -06:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2022-05-17 13:06:08 -05:00
|
|
|
require "read_only_mixin"
|
2019-05-03 05:21:07 -05:00
|
|
|
|
2019-01-21 00:37:04 -06:00
|
|
|
class ForumsController < ActionController::Base
|
2022-05-17 13:06:08 -05:00
|
|
|
include ReadOnlyMixin
|
2019-05-03 05:21:07 -05:00
|
|
|
|
|
|
|
before_action :check_readonly_mode
|
|
|
|
after_action :add_readonly_header
|
|
|
|
|
2013-02-05 13:16:51 -06:00
|
|
|
def status
|
2021-03-14 23:41:59 -05:00
|
|
|
if params[:cluster]
|
|
|
|
if GlobalSetting.cluster_name.nil?
|
|
|
|
return render plain: "cluster name not configured", status: 500
|
|
|
|
elsif GlobalSetting.cluster_name != params[:cluster]
|
|
|
|
return render plain: "cluster name does not match", status: 500
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2022-01-08 16:39:46 -06:00
|
|
|
render plain: "ok"
|
2013-02-05 13:16:51 -06:00
|
|
|
end
|
|
|
|
end
|