Chore: Housekeeping tasks (#721)

- End point to return api version
- Move agent bot listener to sync dispatcher
- gem update
This commit is contained in:
Sojan Jose
2020-04-16 15:05:01 +05:30
committed by GitHub
parent 55892e37f9
commit 743bddc065
8 changed files with 59 additions and 18 deletions

14
config/app.yml Normal file
View File

@@ -0,0 +1,14 @@
shared: &shared
version: '1.4.0'
development:
<<: *shared
production:
<<: *shared
staging:
<<: *shared
test:
<<: *shared

View File

@@ -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

View File

@@ -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
# ----------------------------------