Chatwoot/app/controllers/api/v1/widget/campaigns_controller.rb

8 lines
200 B
Ruby
Raw Permalink Normal View History

class Api::V1::Widget::CampaignsController < Api::V1::Widget::BaseController
skip_before_action :set_contact
def index
@campaigns = @web_widget.inbox.campaigns.where(enabled: true)
end
end