debian-mirror-gitlab/app/controllers/dashboard/labels_controller.rb
2016-11-03 12:29:30 +05:30

9 lines
258 B
Ruby

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