aboutsummaryrefslogtreecommitdiff
path: root/config/routes.rb
diff options
context:
space:
mode:
authorhellekin <hellekin@cepheide.org>2020-10-06 04:26:25 +0200
committerhellekin <hellekin@cepheide.org>2020-10-06 04:26:25 +0200
commit56a16be5fb51d8f6a8b04e9e7094aa7c57fb8547 (patch)
tree83280700beda03eaa0786cdd8c94c93a1533f18b /config/routes.rb
parent09ac92747bfbda80a54e44b22576d29d9dfc63c3 (diff)
downloadincommon-map-56a16be5fb51d8f6a8b04e9e7094aa7c57fb8547.tar.gz
First pass at something visible
This is a first version of the application, to go beyond simple authentication.
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index ac3e3f3..d22ee2e 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -3,7 +3,15 @@ Rails.application.routes.draw do
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'