summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorDennis Tang <dtang@gitlab.com>2018-05-24 11:18:04 +0200
committerDennis Tang <dtang@gitlab.com>2018-05-26 00:15:00 +0200
commitdb30e7f3b3883999d72dbf95b41d9a1de8b7ffc0 (patch)
treebf9dce6215de56f9717a9853ecb06abfccd25df0 /config
parent250a8aee258b432bc51b8f177159f4abbc31a8b9 (diff)
downloadgitlab-ce-db30e7f3b3883999d72dbf95b41d9a1de8b7ffc0.tar.gz
use implied route for clusters#create
Diffstat (limited to 'config')
-rw-r--r--config/routes/project.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/config/routes/project.rb b/config/routes/project.rb
index 6609f093b20..8ecebcf263a 100644
--- a/config/routes/project.rb
+++ b/config/routes/project.rb
@@ -204,11 +204,7 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
end
end
- resources :clusters, except: [:edit, :create] do
- collection do
- post '/new', to: 'clusters#create'
- end
-
+ resources :clusters, except: [:edit] do
member do
get :status, format: :json