summaryrefslogtreecommitdiff
path: root/app/controllers/admin/instance_statistics_controller.rb
blob: 30891fcfe7c38bf639896282a6e521356b100ba1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

class Admin::InstanceStatisticsController < Admin::ApplicationController
  include Analytics::UniqueVisitsHelper

  before_action :check_feature_flag

  track_unique_visits :index, target_id: 'i_analytics_instance_statistics'

  feature_category :devops_reports

  def index
  end

  def check_feature_flag
    render_404 unless Feature.enabled?(:instance_statistics, default_enabled: true)
  end
end