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

Add `POST /boards` routing

Aaron Contreras558ac78cb80f
diff --git a/modules/boards/config/routes.rb b/modules/boards/config/routes.rb
index f1636b2cd60..ae4f99ab6e2 100644
--- a/modules/boards/config/routes.rb
+++ b/modules/boards/config/routes.rb
@@ -3,7 +3,7 @@ OpenProject::Application.routes.draw do
resources :boards,
controller: 'boards/boards',
- only: %i[new],
+ only: %i[new create],
as: :work_package_boards
scope '', as: :work_package_boards do
diff --git a/modules/boards/spec/routing/boards_routing_spec.rb b/modules/boards/spec/routing/boards_routing_spec.rb
index 0fec59346db..279aa3fb285 100644
--- a/modules/boards/spec/routing/boards_routing_spec.rb
+++ b/modules/boards/spec/routing/boards_routing_spec.rb
@@ -46,4 +46,10 @@ RSpec.describe 'Boards routing' do
.to route(:get, '/boards/new')
.to(controller: 'boards/boards', action: 'new')
end
+
+ it do
+ expect(subject)
+ .to route(:post, '/boards')
+ .to(controller: 'boards/boards', action: 'create')
+ end
end