Refactor: Inbox store, remove inboxes from sidebar (#387)
* Refactor: Inbox store, remove inboxes from sidebar * Add a new page for inbox settings * Show inboxes on sidebar * Add inbox_members API * Disable similar-code check * Fix codeclimate scss issues * Add widget_color update API and actions * Add specs for inbox store * Fix Facebook auth flow * Fix agent loading, inbox name
This commit is contained in:
@@ -26,7 +26,7 @@ Rails.application.routes.draw do
|
||||
|
||||
namespace :widget do
|
||||
resources :messages, only: [:index, :create]
|
||||
resources :inboxes, only: [:create]
|
||||
resources :inboxes, only: [:create, :update]
|
||||
end
|
||||
|
||||
namespace :actions do
|
||||
@@ -92,7 +92,7 @@ Rails.application.routes.draw do
|
||||
|
||||
# Sidekiq Web UI
|
||||
require 'sidekiq/web'
|
||||
authenticate :user, lambda { |u| u.administrator? } do
|
||||
authenticate :user, ->(u) { u.administrator? } do
|
||||
mount Sidekiq::Web => '/sidekiq'
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user