summaryrefslogtreecommitdiff
path: root/app/controllers/dashboard/labels_controller.rb
blob: dd1d46a68c71cbc6c5957afa7acc469f3872a61f (plain)
1
2
3
4
5
6
7
8
9
class Dashboard::LabelsController < Dashboard::ApplicationController
  def index
    labels = LabelsFinder.new(current_user).execute

    respond_to do |format|
      format.json { render json: LabelSerializer.new.represent_appearance(labels) }
    end
  end
end