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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 59 additions and 18 deletions

View file

@ -0,0 +1,8 @@
class ApiController < ApplicationController
skip_before_action :set_current_user, only: [:index]
skip_before_action :check_subscription, only: [:index]
def index
render json: { version: Chatwoot.config[:version], timestamp: Time.now.utc.to_formatted_s(:db) }
end
end