diff --git a/crowbar_framework/app/views/support/index.html.haml b/crowbar_framework/app/views/support/index.html.haml index b9c00d3e13..e5e545b592 100644 --- a/crowbar_framework/app/views/support/index.html.haml +++ b/crowbar_framework/app/views/support/index.html.haml @@ -41,7 +41,7 @@ - else = link_to file, "/export/#{file}" - = link_to icon_tag("trash"), utils_files_path(:id => file), :title => t(".delete_hint"), :class => "pull-right" + = link_to icon_tag("trash"), utils_files_path(:id => file), :title => t(".delete_hint"), :class => "pull-right", :method => :delete - else .alert.alert-info = t(".none_exported") diff --git a/crowbar_framework/config/routes.rb b/crowbar_framework/config/routes.rb index 84cffb82cc..06906741d4 100644 --- a/crowbar_framework/config/routes.rb +++ b/crowbar_framework/config/routes.rb @@ -62,7 +62,7 @@ #support paths get "utils(.:format)", controller: "support", action: "index", as: "utils" - get "utils/files/:id(.:format)", controller: "support", action: "destroy", constraints: { id: /[^\/]+/ }, as: "utils_files" + delete "utils/files/:id(.:format)", controller: "support", action: "destroy", constraints: { id: /[^\/]+/ }, as: "utils_files" get "utils/chef(.:format)", controller: "support", action: "export_chef", as: "export_chef" get "utils/supportconfig(.:format)", controller: "support", action: "export_supportconfig", as: "export_supportconfig" get "utils/:controller/1.0/export(.:format)", action: "export", as: "utils_export"