aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb13
1 files changed, 10 insertions, 3 deletions
diff --git a/config/routes.rb b/config/routes.rb
index e706194..cb7a20c 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -32,9 +32,16 @@ Rails.application.routes.draw do
end
end
- resources :terraform_http_backend,
- controller: :terraform_http_backend,
- except: %i(new edit update)
+ scope :terraform_http_backend do
+ get(
+ '*state_id',
+ to: 'terraform_http_backend#show',
+ format: false,
+ as: 'terraform_http_backend'
+ )
+ post '*state_id', to: 'terraform_http_backend#create', format: false
+ delete '*state_id', to: 'terraform_http_backend#destroy', format: false
+ end
resources :mini_environments, path: '/' do
post '/', to: 'mini_environments#perform_action', as: 'perform_action'