mirror of
https://github.com/beatriceo/polyglot.git
synced 2025-10-21 09:19:59 +00:00
Merge branch 'master' into page
This commit is contained in:
@@ -47,10 +47,10 @@ Rails.application.configure do
|
||||
# Mount Action Cable outside main process or domain
|
||||
# config.action_cable.mount_path = nil
|
||||
config.action_cable.url = 'wss://polyglot-173.herokuapp.com/cable'
|
||||
config.action_cable.allowed_request_origins = [ '*' ]
|
||||
config.action_cable.allowed_request_origins = [ 'https://polyglot-173.herokuapp.com/' ]
|
||||
|
||||
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
||||
# config.force_ssl = true
|
||||
config.force_ssl = true
|
||||
|
||||
# Use the lowest log level to ensure availability of diagnostic information
|
||||
# when problems arise.
|
||||
|
@@ -1,5 +1,5 @@
|
||||
Rails.application.routes.draw do
|
||||
get 'video_sessions/create'
|
||||
|
||||
devise_for :users, path: '', path_names: { sign_out: 'logout'}
|
||||
devise_scope :user do
|
||||
get '/logout', to: 'devise/sessions#destroy'
|
||||
@@ -15,9 +15,22 @@ Rails.application.routes.draw do
|
||||
|
||||
get '/call', to: 'pages#call'
|
||||
|
||||
get '/establish_call/:contact_id', to: 'pages#establish_call', as: 'establish_call'
|
||||
|
||||
post '/accept_call', to: 'pages#accept_call', as: 'accept_call/'
|
||||
|
||||
patch '/accept_call/:request_id', to: 'requests#update', as: 'update_request'
|
||||
|
||||
get '/contacts', to: 'pages#index'
|
||||
post '/sessions', to: 'video_sessions#create'
|
||||
|
||||
post '/chat_rooms/chat_room_sessions', to: 'chat_rooms#create'
|
||||
|
||||
resources :chat_rooms, only: [ :show ] do
|
||||
# testing action cable
|
||||
post '/cable_testing', to: 'pages#cable_testing'
|
||||
end
|
||||
|
||||
mount ActionCable.server, at: '/cable'
|
||||
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
|
||||
get '/home', to: 'pages#home'
|
||||
|
Reference in New Issue
Block a user