mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 03:10:46 -06:00
20 lines
327 B
Ruby
20 lines
327 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "read_only"
|
|
|
|
class ForumsController < ActionController::Base
|
|
include ReadOnly
|
|
|
|
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
|