Chore: Housekeeping tasks (#721)
- End point to return api version - Move agent bot listener to sync dispatcher - gem update
This commit is contained in:
14
config/app.yml
Normal file
14
config/app.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
shared: &shared
|
||||
version: '1.4.0'
|
||||
|
||||
development:
|
||||
<<: *shared
|
||||
|
||||
production:
|
||||
<<: *shared
|
||||
|
||||
staging:
|
||||
<<: *shared
|
||||
|
||||
test:
|
||||
<<: *shared
|
||||
@@ -30,5 +30,12 @@ module Chatwoot
|
||||
config.action_dispatch.default_headers = {
|
||||
'X-Frame-Options' => 'ALLOWALL'
|
||||
}
|
||||
|
||||
# Custom chatwoot configurations
|
||||
config.x = config_for(:app).with_indifferent_access
|
||||
end
|
||||
|
||||
def self.config
|
||||
@config ||= Rails.configuration.x
|
||||
end
|
||||
end
|
||||
|
||||
@@ -17,6 +17,7 @@ Rails.application.routes.draw do
|
||||
|
||||
resource :widget, only: [:show]
|
||||
|
||||
get '/api', to: 'api#index'
|
||||
namespace :api, defaults: { format: 'json' } do
|
||||
namespace :v1 do
|
||||
# ----------------------------------
|
||||
|
||||
Reference in New Issue
Block a user