2016-03-23 06:39:58 -04:00
|
|
|
class Dashboard::LabelsController < Dashboard::ApplicationController
|
|
|
|
def index
|
2016-10-11 13:39:32 -04:00
|
|
|
labels = LabelsFinder.new(current_user).execute
|
|
|
|
|
2016-03-23 06:39:58 -04:00
|
|
|
respond_to do |format|
|
2016-10-11 13:39:32 -04:00
|
|
|
format.json { render json: labels.as_json(only: [:id, :title, :color]) }
|
2016-03-23 06:39:58 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|