Chatwoot/app/controllers/api/v1/accounts/contacts/labels_controller.rb

14 lines
239 B
Ruby
Raw Normal View History

2021-10-24 07:10:30 +00:00
class Api::V1::Accounts::Contacts::LabelsController < Api::V1::Accounts::Contacts::BaseController
include LabelConcern
private
def model
2021-10-24 07:10:30 +00:00
@model ||= @contact
end
def permitted_params
2021-10-24 07:10:30 +00:00
params.permit(labels: [])
end
end