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

10 lines
263 B
Ruby
Raw Normal View History

class Dashboard::LabelsController < Dashboard::ApplicationController
def index
labels = LabelsFinder.new(current_user).execute
respond_to do |format|
2017-05-05 18:47:32 -04:00
format.json { render json: LabelSerializer.new.represent_appearance(labels) }
end
end
end