chore: Use different files for widget and dashboard audio alert (#4637)

This commit is contained in:
Pranav Raj S
2022-05-06 20:19:36 +05:30
committed by GitHub
parent ef850eda0f
commit 2e0d43c093
8 changed files with 7 additions and 7 deletions

View File

@@ -82,7 +82,7 @@ Rails.application.configure do
allow do
origins '*'
resource '/packs/*', headers: :any, methods: [:get, :options]
resource '/dashboard/audios/ding.mp3', headers: :any, methods: [:get, :options]
resource '/audio/*', headers: :any, methods: [:get, :options]
resource '*', headers: :any, methods: :any, expose: ['access-token', 'client', 'uid', 'expiry']
end
end

View File

@@ -121,7 +121,7 @@ Rails.application.configure do
allow do
origins '*'
resource '/packs/*', headers: :any, methods: [:get, :options]
resource '/dashboard/audios/ding.mp3', headers: :any, methods: [:get, :options]
resource '/audio/*', headers: :any, methods: [:get, :options]
if ActiveModel::Type::Boolean.new.cast(ENV.fetch('CW_API_ONLY_SERVER', false))
resource '*', headers: :any, methods: :any, expose: ['access-token', 'client', 'uid', 'expiry']
end

View File

@@ -87,7 +87,7 @@ Rails.application.configure do
allow do
origins '*'
resource '/packs/*', headers: :any, methods: [:get, :options]
resource '/dashboard/audios/ding.mp3', headers: :any, methods: [:get, :options]
resource '/audio/*', headers: :any, methods: [:get, :options]
end
end
end

View File

@@ -58,7 +58,7 @@ Rails.application.configure do
allow do
origins '*'
resource '/packs/*', headers: :any, methods: [:get, :options]
resource '/dashboard/audios/ding.mp3', headers: :any, methods: [:get, :options]
resource '/audio/*', headers: :any, methods: [:get, :options]
end
end
end