2016-03-23 10:39:58 +00:00
|
|
|
class Dashboard::LabelsController < Dashboard::ApplicationController
|
|
|
|
def index
|
2016-10-11 17:39:32 +00:00
|
|
|
labels = LabelsFinder.new(current_user).execute
|
|
|
|
|
2016-03-23 10:39:58 +00:00
|
|
|
respond_to do |format|
|
2017-05-05 22:47:32 +00:00
|
|
|
format.json { render json: LabelSerializer.new.represent_appearance(labels) }
|
2016-03-23 10:39:58 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|