BigW Consortium Gitlab

labels_controller.rb 258 Bytes
Newer Older
1 2
class Dashboard::LabelsController < Dashboard::ApplicationController
  def index
3 4
    labels = LabelsFinder.new(current_user).execute

5
    respond_to do |format|
6
      format.json { render json: labels.as_json(only: [:id, :title, :color]) }
7 8 9
    end
  end
end