mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 03:57:52 +00:00
Expose widget config via an API so that the UI could be detached from the rails Application.
8 lines
200 B
Ruby
8 lines
200 B
Ruby
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
|