BigW Consortium Gitlab

labels_controller.rb 257 Bytes
Newer Older
1 2
class Dashboard::LabelsController < Dashboard::ApplicationController
  def index
3
    labels = Label.where(project_id: projects).select(:id, :title, :color).uniq(:title)
4 5 6 7 8 9

    respond_to do |format|
      format.json { render json: labels }
    end
  end
end