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
|