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

10 lines
257 B
Ruby
Raw Normal View History

class Dashboard::LabelsController < Dashboard::ApplicationController
def index
2016-05-03 12:58:43 -04:00
labels = Label.where(project_id: projects).select(:id, :title, :color).uniq(:title)
respond_to do |format|
format.json { render json: labels }
end
end
end