Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Properly define bulk routes without a resource

Klaus Zandersd8967dcfbe78
diff --git a/config/routes.rb b/config/routes.rb
index 230749ce49f..c8329727ee6 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -85,7 +85,9 @@ Rails.application.routes.draw do
end
collection do
- resource :bulk, controller: "shares/bulk", only: %i[update destroy], as: :shares_bulk
+ patch :bulk, to: "shares/bulk#update"
+ put :bulk, to: "shares/bulk#update"
+ delete :bulk, to: "shares/bulk#destroy"
end
end
end