aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
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,