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

labels_controller.rb « dashboard « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d5031da867af6ac49fdebbe14b26b35507a259f9 (plain)
1
2
3
4
5
6
7
8
9
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