From 4adfe630b29a85d02cc575533f20623edc935a24 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Tue, 19 Jun 2018 21:24:26 +0100 Subject: 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. --- config/routes.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'config') diff --git a/config/routes.rb b/config/routes.rb index f6ea63b..3c303bc 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -32,7 +32,18 @@ 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', -- cgit v1.2.3