discourse/app/controllers/forums_controller.rb

13 lines
211 B
Ruby

# frozen_string_literal: true
class ForumsController < ActionController::Base
def status
if $shutdown
render plain: 'shutting down', status: 500
else
render plain: 'ok'
end
end
end