diff options
Diffstat (limited to 'app/controllers/admin/version_check_controller.rb')
-rw-r--r-- | app/controllers/admin/version_check_controller.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/controllers/admin/version_check_controller.rb b/app/controllers/admin/version_check_controller.rb new file mode 100644 index 00000000000..dde1a7abafa --- /dev/null +++ b/app/controllers/admin/version_check_controller.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +class Admin::VersionCheckController < Admin::ApplicationController + feature_category :not_owned + + def version_check + response = VersionCheck.new.response + + expires_in 1.minute if response + render json: response + end +end |