From eebd74d633c96af8a5ba3fbef03777bfdd240e2d Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Mon, 20 May 2019 12:48:41 +0300 Subject: [PATCH] Move some project routes under /-/ scope Signed-off-by: Dmitriy Zaporozhets --- changelogs/unreleased/dz-scope-project-routes.yml | 5 +++++ config/routes/repository.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 changelogs/unreleased/dz-scope-project-routes.yml diff --git a/changelogs/unreleased/dz-scope-project-routes.yml b/changelogs/unreleased/dz-scope-project-routes.yml new file mode 100644 index 00000000000..66eb5d928f0 --- /dev/null +++ b/changelogs/unreleased/dz-scope-project-routes.yml @@ -0,0 +1,5 @@ +--- +title: Move some project routes under /-/ scope +merge_request: 28435 +author: +type: changed diff --git a/config/routes/repository.rb b/config/routes/repository.rb index f5201b9ddbb..b96315bfe8b 100644 --- a/config/routes/repository.rb +++ b/config/routes/repository.rb @@ -39,7 +39,7 @@ scope format: false do end end - scope constraints: { id: Gitlab::PathRegex.git_reference_regex } do + scope path: '-', constraints: { id: Gitlab::PathRegex.git_reference_regex } do resources :network, only: [:show] resources :graphs, only: [:show] do