a0886d37bc
Expose widget config via an API so that the UI could be detached from the rails Application.
7 lines
200 B
Ruby
7 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
|