diff --git a/config/routes/project.rb b/config/routes/project.rb index 9a77e7a98ac0feb2e3ed9aa7742e71cde6fd3aa7..632ef34f317b79a868b4fa0003b8828f3ecca704 100644 --- a/config/routes/project.rb +++ b/config/routes/project.rb @@ -565,7 +565,7 @@ # Deprecated unscoped routing. scope as: 'deprecated' do # Issue https://gitlab.com/gitlab-org/gitlab/issues/118849 - draw :repository + draw :repository_deprecated # Issue https://gitlab.com/gitlab-org/gitlab/-/issues/223719 # rubocop: disable Cop/PutProjectRoutesUnderScope diff --git a/config/routes/repository.rb b/config/routes/repository_deprecated.rb similarity index 83% rename from config/routes/repository.rb rename to config/routes/repository_deprecated.rb index 854c6517cd55eb1630b03b83c2afd4167ad5836e..7626ceb3529232d5ba68cb178cd18bd945ce31b1 100644 --- a/config/routes/repository.rb +++ b/config/routes/repository_deprecated.rb @@ -1,9 +1,9 @@ # frozen_string_literal: true -# All routing related to repository browsing -# -# NOTE: Add new routes to repository_scoped.rb instead (see -# https://docs.gitlab.com/ee/development/routing.html#project-routes). +# Repository routes without /-/ scope. +# Issue https://gitlab.com/gitlab-org/gitlab/-/issues/28848. +# Do not add new routes here. Add new routes to repository_scoped.rb instead +# (see https://docs.gitlab.com/ee/development/routing.html#project-routes). resource :repository, only: [:create]