diff options
author | Christopher Baines <mail@cbaines.net> | 2018-04-05 22:58:56 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-04-12 08:30:05 +0100 |
commit | b03a664ec42bd93a7547fb53216ab3ae5d099dcd (patch) | |
tree | f15bbc4e10ab4f6df3e51c194d5aea2f488215bf /config/routes.rb | |
parent | 4238b1f3bc88ab2a1d97aa3c4967361c853b4880 (diff) | |
download | govuk-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.rb | 8 |
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 |