[Feature] Website live chat (#187)

Co-authored-by: Nithin David Thomas <webofnithin@gmail.com>
Co-authored-by: Sojan Jose <sojan@pepalo.com>
This commit is contained in:
Pranav Raj S
2019-10-29 12:50:54 +05:30
committed by GitHub
parent a4114288f3
commit 16fe912fbd
80 changed files with 2040 additions and 106 deletions

View File

@@ -11,6 +11,8 @@ Rails.application.routes.draw do
match '/status', to: 'home#status', via: [:get]
resources :widgets, only: [:index]
namespace :api, :defaults => { :format => 'json' } do
namespace :v1 do
resources :callbacks, only: [] do
@@ -23,12 +25,8 @@ Rails.application.routes.draw do
end
namespace :widget do
resources :messages, only: [] do
collection do
post :create_incoming
post :create_outgoing
end
end
resources :messages, only: [:index, :create]
resources :inboxes, only: [:create]
end
resources :accounts, only: [:create]