aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-06-23 11:16:26 +0100
committerChristopher Baines <mail@cbaines.net>2018-06-23 12:58:05 +0100
commit05df9f91e9bdf39b190710ef5d80162d03dd52c5 (patch)
tree4a092a555a120131f8b3f096d274d2e3afc5bbae /config
parent837e1ecec9798381f78b838947f8028403cb0bef (diff)
downloadgovuk-mini-environment-admin-05df9f91e9bdf39b190710ef5d80162d03dd52c5.tar
govuk-mini-environment-admin-05df9f91e9bdf39b190710ef5d80162d03dd52c5.tar.gz
Support managing the libvirt backend from the show page
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 3c303bc..70d967a 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -21,7 +21,11 @@ Rails.application.routes.draw do
resources :terraform_libvirt,
as: 'terraform_libvirt_backends',
controller: 'backends/terraform_libvirt',
- only: %i[create new show update destroy]
+ only: %i[create new show update destroy] do
+ member do
+ post 'perform_action'
+ end
+ end
end
end