Guest User

Untitled

a guest
Jan 23rd, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. devise_for :admins
  2. mount RailsAdmin::Engine => '/admin', as: 'rails_admin'
  3. scope :api do
  4. scope :v1 do
  5. devise_for :users, controllers: {
  6. registrations: 'users/registrations',
  7. confirmations: 'users/confirmations',
  8. sessions: 'users/sessions',
  9. passwords: 'users/passwords'
  10. }
  11. get 'confirm_user_email', to: 'user_emails#confirm_email', as: :confirm_user_email
  12. get 'forgot_password', to: 'landing_page#forgot_password'
  13. post 'send_invitation', to: 'users#send_invitation', as: :send_invitation
  14. end
  15. end
  16. unless Rails.env.production?
  17. mount LetterOpenerWeb::Engine, at: '/letter_opener'
  18. end
  19.  
  20. require 'sidekiq/web'
  21. mount Sidekiq::Web => '/sidekiq'
  22. get "*path" => "home#index"
  23.  
  24. mount ActionCable.server => '/cable'
Add Comment
Please, Sign In to add comment