summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2019-05-20 12:48:41 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2019-05-20 12:56:39 +0300
commiteebd74d633c96af8a5ba3fbef03777bfdd240e2d (patch)
treee5122a574f36d688692ff6140dc9bdbb5f301f54
parentf14565948f8d7759f6c0e7d6cc77445b2211e8f6 (diff)
downloadgitlab-ce-eebd74d633c96af8a5ba3fbef03777bfdd240e2d.tar.gz
Move some project routes under /-/ scope
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r--changelogs/unreleased/dz-scope-project-routes.yml5
-rw-r--r--config/routes/repository.rb2
2 files changed, 6 insertions, 1 deletions
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