2019-08-14 09:48:44 +00:00
|
|
|
class Api::BaseController < ApplicationController
|
|
|
|
respond_to :json
|
|
|
|
before_action :authenticate_user!
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def set_conversation
|
|
|
|
@conversation ||= current_account.conversations.find_by(display_id: params[:conversation_id])
|
|
|
|
end
|
2020-02-17 02:21:45 +00:00
|
|
|
|
|
|
|
def check_billing_enabled
|
|
|
|
raise ActionController::RoutingError, 'Not Found' unless ENV['BILLING_ENABLED']
|
|
|
|
end
|
2019-08-14 09:48:44 +00:00
|
|
|
end
|