blob: 7c96d78e26e44019294468e97852c088fb27f377 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# frozen_string_literal: true
module Users
class NamespaceVisitsController < ApplicationController
feature_category :navigation
def create
return head :not_found unless Feature.enabled?(:server_side_frecent_namespaces, current_user)
return head :bad_request unless params[:type].present? && params[:id].present?
Users::TrackNamespaceVisitsWorker.perform_async(params[:type], params[:id], current_user.id, DateTime.now) # rubocop:disable CodeReuse/Worker
head :ok
end
end
end
|