diff options
author | Christopher Baines <mail@cbaines.net> | 2018-06-19 21:24:26 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-06-19 21:47:20 +0100 |
commit | 4adfe630b29a85d02cc575533f20623edc935a24 (patch) | |
tree | bd91a510025170d1ec13f25c97028245ff540ee9 /config | |
parent | 9d24246300fc0390b0c9719251550d124388c1c3 (diff) | |
download | govuk-mini-environment-admin-4adfe630b29a85d02cc575533f20623edc935a24.tar govuk-mini-environment-admin-4adfe630b29a85d02cc575533f20623edc935a24.tar.gz |
Display Terraform states
Add an index route, and a route to access a historical Terraform state
by index.
This also makes the ordering explicit, and fixes an issue with wrapped
parameters.
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb index f6ea63b..3c303bc 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -32,8 +32,19 @@ Rails.application.routes.draw do end end + get( + 'terraform_states', + to: 'terraform_http_backend#index', + as: 'terraform_states' + ) scope :terraform_http_backend do get( + '*state_id/history/*index', + to: 'terraform_http_backend#show_by_index', + as: 'terraform_http_backend_show_by_index' + ) + + get( '*state_id', to: 'terraform_http_backend#show', format: false, |