debian-mirror-gitlab/app/controllers/dashboard/labels_controller.rb

10 lines
258 B
Ruby
Raw Normal View History

2016-06-02 11:05:42 +05:30
class Dashboard::LabelsController < Dashboard::ApplicationController
def index
2016-11-03 12:29:30 +05:30
labels = LabelsFinder.new(current_user).execute
2016-06-02 11:05:42 +05:30
respond_to do |format|
2016-11-03 12:29:30 +05:30
format.json { render json: labels.as_json(only: [:id, :title, :color]) }
2016-06-02 11:05:42 +05:30
end
end
end