Commit 28dbb472 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Use another scope to add the - prefix, feedback:

https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/11407#note_30922591
parent 32810903
......@@ -216,7 +216,8 @@ constraints(ProjectUrlConstrainer.new) do
end
end
resources :jobs, path: '-/jobs', only: [:index, :show], constraints: { id: /\d+/ } do
scope '-' do
resources :jobs, only: [:index, :show], constraints: { id: /\d+/ } do
collection do
post :cancel_all
......@@ -247,6 +248,7 @@ constraints(ProjectUrlConstrainer.new) do
post :keep
end
end
end
Gitlab::Routes::LegacyBuilds.new(self).draw
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment