chore: Update widget config API to migrate the widget (#8303)

- Update the keys in the widget config API to support loading the widget separately from the Rails App.
This commit is contained in:
Pranav Raj S
2023-11-06 15:27:29 -08:00
committed by GitHub
parent b579ff832e
commit d1cbc56d67
2 changed files with 25 additions and 17 deletions

View File

@@ -10,7 +10,7 @@ RSpec.describe '/api/v1/widget/config', type: :request do
describe 'POST /api/v1/widget/config' do
let(:params) { { website_token: web_widget.website_token } }
let(:response_keys) { %w[chatwoot_website_channel chatwoot_widget_defaults contact auth_token global_config] }
let(:response_keys) { %w[website_channel_config contact global_config] }
context 'with invalid website token' do
it 'returns not found' do