aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-06-19 21:24:26 +0100
committerChristopher Baines <mail@cbaines.net>2018-06-19 21:47:20 +0100
commit4adfe630b29a85d02cc575533f20623edc935a24 (patch)
treebd91a510025170d1ec13f25c97028245ff540ee9 /config
parent9d24246300fc0390b0c9719251550d124388c1c3 (diff)
downloadgovuk-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.rb11
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,