mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-03 04:27:53 +00:00
14 lines
294 B
Ruby
14 lines
294 B
Ruby
class Api::V1::Accounts::Contacts::LabelsController < Api::V1::Accounts::BaseController
|
|
include LabelConcern
|
|
|
|
private
|
|
|
|
def model
|
|
@model ||= Current.account.contacts.find(permitted_params[:contact_id])
|
|
end
|
|
|
|
def permitted_params
|
|
params.permit(:contact_id, labels: [])
|
|
end
|
|
end
|