Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'config/routes/group.rb')
-rw-r--r--config/routes/group.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/config/routes/group.rb b/config/routes/group.rb
index 7a4740a4df7..612929dba09 100644
--- a/config/routes/group.rb
+++ b/config/routes/group.rb
@@ -56,6 +56,17 @@ constraints(GroupUrlConstrainer.new) do
get ":secret/:filename", action: :show, as: :show, constraints: { filename: %r{[^/]+} }
end
end
+
+ # On CE only index and show actions are needed
+ resources :boards, only: [:index, :show]
+
+ legacy_ee_group_boards_redirect = redirect do |params, request|
+ path = "/groups/#{params[:group_id]}/-/boards"
+ path << "/#{params[:extra_params]}" if params[:extra_params].present?
+ path << "?#{request.query_string}" if request.query_string.present?
+ path
+ end
+ get 'boards(/*extra_params)', as: :legacy_ee_group_boards_redirect, to: legacy_ee_group_boards_redirect
end
scope(path: '*id',