Chatwoot/app/controllers/api/v1/conversations/messages_controller.rb

9 lines
256 B
Ruby
Raw Normal View History

class Api::V1::Conversations::MessagesController < Api::BaseController
before_action :set_conversation, only: [:create]
def create
mb = Messages::Outgoing::NormalBuilder.new(current_user, @conversation, params)
@message = mb.perform
end
end