24 lines
619 B
Ruby
24 lines
619 B
Ruby
Rails.application.routes.draw do
|
|
devise_for :users
|
|
|
|
get 'welcome', to: 'welcome#index'
|
|
get 'check_your_email', to: 'welcome#check_your_email'
|
|
|
|
get 'settings', to: 'settings#index'
|
|
post 'settings_reset_password', to: 'settings#reset_password'
|
|
|
|
resources :invitations, only: ['index', 'create', 'destroy']
|
|
|
|
namespace :admin do
|
|
root to: 'dashboard#index'
|
|
get 'ldap_users', to: 'ldap_users#index'
|
|
end
|
|
|
|
# Letter Opener (open "sent" emails in dev and staging)
|
|
if Rails.env.match(/staging|development/)
|
|
mount LetterOpenerWeb::Engine, at: "letter_opener"
|
|
end
|
|
|
|
root to: 'dashboard#index'
|
|
end
|