summaryrefslogtreecommitdiff
path: root/config/routes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb30
1 files changed, 16 insertions, 14 deletions
diff --git a/config/routes.rb b/config/routes.rb
index cfb81cabfe4..bf5023eeec2 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -74,6 +74,21 @@ Rails.application.routes.draw do
resources :issues, module: :boards, only: [:index, :update]
end
+ resources :clusters, only: [:update, :destroy] do
+ collection do
+ post :create_user
+ post :create_gcp
+ end
+
+ member do
+ scope :applications do
+ post '/:application', to: 'clusters/applications#create', as: :install_applications
+ end
+
+ get :status, format: :json
+ end
+ end
+
# UserCallouts
resources :user_callouts, only: [:create]
@@ -85,20 +100,7 @@ Rails.application.routes.draw do
end
concern :clusterable do
- resources :clusters, except: [:edit, :create], controller: '/clusters' do
- collection do
- post :create_gcp
- post :create_user
- end
-
- member do
- get :status, format: :json
-
- scope :applications do
- post '/:application', to: '/clusters/applications#create', as: :install_applications
- end
- end
- end
+ resources :clusters, only: [:index, :new, :show], controller: '/clusters'
end
draw :api