debian-mirror-gitlab/app/controllers/admin/version_check_controller.rb
2022-01-26 12:08:38 +05:30

12 lines
263 B
Ruby

# 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