summaryrefslogtreecommitdiff
path: root/config/routes
diff options
context:
space:
mode:
authorDennis Tang <dtang@gitlab.com>2018-06-05 20:04:40 -0700
committerDennis Tang <dtang@gitlab.com>2018-06-05 20:04:40 -0700
commitedb89f555b25aa4d4aad7a3bdf5a0bd75bd076fc (patch)
treeb186f1b139edc5fa71d7bd3c9469761380fa4c41 /config/routes
parent151b6b2b2b60debccdf09eda5dbe9be31cc395f6 (diff)
downloadgitlab-ce-edb89f555b25aa4d4aad7a3bdf5a0bd75bd076fc.tar.gz
split into gcp and user controllers again
Diffstat (limited to 'config/routes')
-rw-r--r--config/routes/project.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/config/routes/project.rb b/config/routes/project.rb
index 7df2d4abb75..f672291a9f1 100644
--- a/config/routes/project.rb
+++ b/config/routes/project.rb
@@ -204,7 +204,14 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
end
end
- resources :clusters, except: [:edit] do
+ resources :clusters, except: [:edit, :create] do
+ collection do
+ scope :providers do
+ post '/user', to: 'clusters/user#create'
+ post '/gcp', to: 'clusters/gcp#create'
+ end
+ end
+
member do
get :status, format: :json