aboutsummaryrefslogtreecommitdiff
path: root/config
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
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')
-rw-r--r--config/application.rb6
-rw-r--r--config/environments/development.rb6
-rw-r--r--config/routes.rb8
3 files changed, 14 insertions, 6 deletions
diff --git a/config/application.rb b/config/application.rb
index 0ca42d8..1af8ba2 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -5,10 +5,10 @@ require "rails"
require "active_model/railtie"
require "active_job/railtie"
require "active_record/railtie"
-require "active_storage/engine"
+#require "active_storage/engine"
require "action_controller/railtie"
-require "action_mailer/railtie"
-require "action_mailbox/engine"
+#require "action_mailer/railtie"
+#require "action_mailbox/engine"
require "action_text/engine"
require "action_view/railtie"
# require "action_cable/engine"
diff --git a/config/environments/development.rb b/config/environments/development.rb
index 66df51f..3ae395e 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -29,12 +29,12 @@ Rails.application.configure do
end
# Store uploaded files on the local file system (see config/storage.yml for options).
- config.active_storage.service = :local
+ # config.active_storage.service = :local
# Don't care if the mailer can't send.
- config.action_mailer.raise_delivery_errors = false
+ # config.action_mailer.raise_delivery_errors = false
- config.action_mailer.perform_caching = false
+ # config.action_mailer.perform_caching = false
# Print deprecation notices to the Rails logger.
config.active_support.deprecation = :log
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'