mirror of
https://github.com/chatwoot/chatwoot.git
synced 2026-06-25 21:09:04 +08:00
15 lines
367 B
Ruby
15 lines
367 B
Ruby
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
|
|
|
|
def check_billing_enabled
|
|
raise ActionController::RoutingError, 'Not Found' unless ENV['BILLING_ENABLED']
|
|
end
|
|
end
|