From 05df9f91e9bdf39b190710ef5d80162d03dd52c5 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sat, 23 Jun 2018 11:16:26 +0100 Subject: Support managing the libvirt backend from the show page --- config/routes.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'config') 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 -- cgit v1.2.3