From 56a16be5fb51d8f6a8b04e9e7094aa7c57fb8547 Mon Sep 17 00:00:00 2001 From: hellekin Date: Tue, 6 Oct 2020 04:26:25 +0200 Subject: First pass at something visible This is a first version of the application, to go beyond simple authentication. --- config/routes.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'config/routes.rb') 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' -- cgit v1.2.3