discourse/app/controllers/forums_controller.rb

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

20 lines
406 B
Ruby
Raw Normal View History

2018-01-14 20:43:26 -05:00
# frozen_string_literal: true
require "read_only_header"
2019-05-03 06:21:07 -04:00
class ForumsController < ActionController::Base
include ReadOnlyHeader
2019-05-03 06:21:07 -04:00
before_action :check_readonly_mode
after_action :add_readonly_header
2013-02-05 14:16:51 -05:00
def status
if $shutdown # rubocop:disable Style/GlobalVars
render plain: "shutting down", status: (params[:shutdown_ok] ? 200 : 500)
2013-02-05 14:16:51 -05:00
else
render plain: "ok"
2013-02-05 14:16:51 -05:00
end
end
end