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

Replace special `POST /boards` route with `resources` macro

Aaron Contrerasdbaf090f2834
diff --git a/modules/boards/config/routes.rb b/modules/boards/config/routes.rb
index 17dc975b2f2..89df20b5eff 100644
--- a/modules/boards/config/routes.rb
+++ b/modules/boards/config/routes.rb
@@ -9,12 +9,7 @@ OpenProject::Application.routes.draw do
scope 'projects/:project_id', as: 'project' do
resources :boards,
controller: 'boards/boards',
- only: %i[index new show],
+ only: %i[index show new create],
as: :work_package_boards
-
- # Adding the `create` action into the above `resources` macro would
- # result in a name collision between it and `get /boards(/*state)`
- # as it would result in both being named `project_work_package_boards`
- post '/boards', to: 'boards/boards#create'
end
end