Welcome to mirror list, hosted at ThFree Co, Russian Federation.

version_check_controller.rb « admin « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f5c70dc9e1b9de7d32a1965074db5b774f190de1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

class Admin::VersionCheckController < Admin::ApplicationController
  feature_category :not_owned # rubocop:todo Gitlab/AvoidFeatureCategoryNotOwned

  def version_check
    response = VersionCheck.new.response

    expires_in 1.minute if response
    render json: response
  end
end