chore: Expose widget config via an API (#2645)

Expose widget config via an API so that the UI could be detached from the rails Application.
This commit is contained in:
Sojan Jose
2021-07-21 01:26:32 +05:30
committed by GitHub
parent caf8669db5
commit a0886d37bc
8 changed files with 142 additions and 12 deletions

View File

@@ -152,6 +152,7 @@ Rails.application.routes.draw do
resource :notification_subscriptions, only: [:create]
namespace :widget do
resource :config, only: [:create]
resources :campaigns, only: [:index]
resources :events, only: [:create]
resources :messages, only: [:index, :create, :update]