blob: d22ee2eaddb196a2e35220288cc5c0e71954629e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
Rails.application.routes.draw do
# For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
root to: 'welcome#index'
# Resource routes
resources :resources
# User routes
get '/my/account', to: 'users#show', as: 'account'
get '/my/current_agent', to: 'agent_switch#new', as: 'new_agent_switch'
put '/my/current_agent', to: 'agent_switch#update', as: 'update_agent_switch'
get '/my/dashboard', to: 'welcome#dashboard'
get 'my/users', to: 'users#index', as: 'users'
# Discourse SSO
get 'authenticate(/:token)', to: 'welcome#authenticate'
get 'logout', to: 'welcome#logout'
end
|