2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00
discourse/app/controllers/forums_controller.rb
2019-05-06 16:07:49 +02:00

19 lines
340 B
Ruby

# frozen_string_literal: true
require "read_only_header"
class ForumsController < ActionController::Base
include ReadOnlyHeader
before_action :check_readonly_mode
after_action :add_readonly_header
def status
if $shutdown
render plain: "shutting down", status: 500
else
render plain: "ok"
end
end
end