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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/projects/service_ping_controller.rb')
-rw-r--r--app/controllers/projects/service_ping_controller.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/app/controllers/projects/service_ping_controller.rb b/app/controllers/projects/service_ping_controller.rb
new file mode 100644
index 00000000000..00530c09be8
--- /dev/null
+++ b/app/controllers/projects/service_ping_controller.rb
@@ -0,0 +1,21 @@
+# frozen_string_literal: true
+
+class Projects::ServicePingController < Projects::ApplicationController
+ before_action :authenticate_user!
+
+ feature_category :service_ping
+
+ def web_ide_clientside_preview
+ return render_404 unless Gitlab::CurrentSettings.web_ide_clientside_preview_enabled?
+
+ Gitlab::UsageDataCounters::WebIdeCounter.increment_previews_count
+
+ head(200)
+ end
+
+ def web_ide_pipelines_count
+ Gitlab::UsageDataCounters::WebIdeCounter.increment_pipelines_count
+
+ head(200)
+ end
+end