Chatwoot/app/controllers/api/v1/conversations/messages_controller.rb
2019-10-20 14:17:26 +05:30

8 lines
256 B
Ruby

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