aboutsummaryrefslogtreecommitdiff
path: root/config/routes.rb
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-04-05 22:58:56 +0100
committerChristopher Baines <mail@cbaines.net>2018-04-12 08:30:05 +0100
commitb03a664ec42bd93a7547fb53216ab3ae5d099dcd (patch)
treef15bbc4e10ab4f6df3e51c194d5aea2f488215bf /config/routes.rb
parent4238b1f3bc88ab2a1d97aa3c4967361c853b4880 (diff)
downloadgovuk-mini-environment-admin-b03a664ec42bd93a7547fb53216ab3ae5d099dcd.tar
govuk-mini-environment-admin-b03a664ec42bd93a7547fb53216ab3ae5d099dcd.tar.gz
Move the terraform utilities to lib/
Change the module to a class, which is used to represent a terraform working directory. Change the routing for the terraform http backends, to remove any connection with mini environments, and remove this concern from the new TerraformWorkingDirectory class also.
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb8
1 files changed, 4 insertions, 4 deletions
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