gitlab-org--gitlab-foss/app/controllers/dashboard/labels_controller.rb

10 lines
258 B
Ruby
Raw Normal View History

class Dashboard::LabelsController < Dashboard::ApplicationController
def index
labels = LabelsFinder.new(current_user).execute
respond_to do |format|
format.json { render json: labels.as_json(only: [:id, :title, :color]) }
end
end
end