diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/database.yml | 2 | ||||
-rw-r--r-- | config/initializers/inflections.rb | 1 | ||||
-rw-r--r-- | config/routes.rb | 5 |
3 files changed, 6 insertions, 2 deletions
diff --git a/config/database.yml b/config/database.yml index 1912468..16ba3d2 100644 --- a/config/database.yml +++ b/config/database.yml @@ -24,7 +24,7 @@ default: &default # For details on connection pooling, see Rails configuration guide # https://guides.rubyonrails.org/configuring.html#database-pooling pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> - host: <%= ENV.fetch("DATABASE_HOST", "db") %> + host: <%= ENV.fetch("DATABASE_HOST", "localhost") %> database: <%= ENV.fetch("POSTGRES_DB", "the_map_db") %> username: <%= ENV.fetch("POSTGRES_USER", "postgres") %> password: <%= ENV.fetch("POSTGRES_PASSWORD", "postgres") %> diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb index 2292fab..45c08f4 100644 --- a/config/initializers/inflections.rb +++ b/config/initializers/inflections.rb @@ -24,4 +24,5 @@ ActiveSupport::Inflector.inflections do |inflect| inflect.acronym 'API' inflect.acronym 'SSO' inflect.acronym 'INCOMMON' + inflect.acronym 'UUID' end diff --git a/config/routes.rb b/config/routes.rb index 9be4a4e..54f383e 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -28,7 +28,10 @@ Rails.application.routes.draw do get '/my/account', to: 'users#show', as: 'account' patch '/my/current_agent', to: 'my/agent#switch', as: 'agent_switch' get '/my/dashboard', to: 'welcome#dashboard' - get 'my/peers', to: 'users#index', as: 'users' + get '/my/peers', to: 'users#index', as: 'users' + + # UUID Resolver + get '/by-uuid/:uuid', to: 'uuid_resolver#new', as: 'uuid_resolver' # Discourse SSO get 'authenticate(/:token)', to: 'welcome#authenticate' |