2022-01-26 12:08:38 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class Admin::VersionCheckController < Admin::ApplicationController
|
2022-06-21 17:19:12 +05:30
|
|
|
feature_category :not_owned # rubocop:todo Gitlab/AvoidFeatureCategoryNotOwned
|
2022-01-26 12:08:38 +05:30
|
|
|
|
|
|
|
def version_check
|
|
|
|
response = VersionCheck.new.response
|
|
|
|
|
|
|
|
expires_in 1.minute if response
|
|
|
|
render json: response
|
|
|
|
end
|
|
|
|
end
|