summaryrefslogtreecommitdiff
path: root/app/controllers/dashboard/labels_controller.rb
blob: d5031da867af6ac49fdebbe14b26b35507a259f9 (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: labels.as_json(only: [:id, :title, :color]) }
    end
  end
end