```ruby
Rails.application.routes.draw do
  root to: 'welcome#index'

  get   '/login', :to => 'sessions#new', :as => :login
  get   '/logout', :to => 'sessions#destroy', :as => :logout

  get "/auth/auth0/callback" => "auth0#callback"
  get "/auth/failure" => "auth0#failure"

  get  "/groups/assign", to: "groups#inquire"
  get  "/groups/reassign", to: "groups#reassign"
  post "/groups/assign", to: "groups#assign"

  post 'pusher/auth', to: 'pusher#auth'

  get '/active', :to => 'requests#active', :as => :active
  get '/river', :to => 'transactions#river', :as => :river
  get '/history', :to => 'transactions#history', :as => :history

  resources :users, only: [:show]

  resources :requests do
    resources :messages
    resources :votes, only: [:create]
  end

end
```

Add a new route to the router, which will be utilized by client-side JavaScript to authenticate user subscribing to a channel.
user
```ruby
Rails.application.routes.draw do
  root to: 'welcome#index'

  get   '/login', :to => 'sessions#new', :as => :login
  get   '/logout', :to => 'sessions#destroy', :as => :logout

  get "/auth/auth0/callback" => "auth0#callback"
  get "/auth/failure" => "auth0#failure"

  get  "/groups/assign", to: "groups#inquire"
  get  "/groups/reassign", to: "groups#reassign"
  post "/groups/assign", to: "groups#assign"

  post 'pusher/auth', to: 'pusher#auth'
  post 'pusher/groupauth', to: 'pusher#groupauth'

  get '/active', :to => 'requests#active', :as => :active
  get '/river', :to => 'transactions#river', :as => :river
  get '/history', :to => 'transactions#history', :as => :history

  resources :users, only: [:show]

  resources :requests do
    resources :messages
    resources :votes, only: [:create]
  end

end
```
assistant