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

13 lines
272 B
Ruby

class Api::V1::Accounts::Conversations::LabelsController < Api::V1::Accounts::Conversations::BaseController
include LabelConcern
private
def model
@model ||= @conversation
end
def permitted_params
params.permit(:conversation_id, labels: [])
end
end