aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/application.rb2
-rw-r--r--config/routes.rb8
2 files changed, 6 insertions, 4 deletions
diff --git a/config/application.rb b/config/application.rb
index a7c23fb..ab4fa46 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -14,5 +14,7 @@ module GovukMiniEnvironmentAdmin
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded.
+
+ config.autoload_paths << "#{Rails.root}/lib"
end
end
diff --git a/config/routes.rb b/config/routes.rb
index 51e5add..e706194 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -32,11 +32,11 @@ Rails.application.routes.draw do
end
end
+ resources :terraform_http_backend,
+ controller: :terraform_http_backend,
+ except: %i(new edit update)
+
resources :mini_environments, path: '/' do
post '/', to: 'mini_environments#perform_action', as: 'perform_action'
-
- resource :terraform_http_backend,
- controller: :terraform_http_backend,
- except: %i[new edit update]
end
end