summaryrefslogtreecommitdiff
path: root/config/routes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb28
1 files changed, 13 insertions, 15 deletions
diff --git a/config/routes.rb b/config/routes.rb
index bf5023eeec2..d2d91647d0b 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -74,7 +74,18 @@ Rails.application.routes.draw do
resources :issues, module: :boards, only: [:index, :update]
end
- resources :clusters, only: [:update, :destroy] do
+ # UserCallouts
+ resources :user_callouts, only: [:create]
+
+ get 'ide' => 'ide#index'
+ get 'ide/*vueroute' => 'ide#index', format: false
+
+ draw :operations
+ draw :instance_statistics
+ end
+
+ concern :clusterable do
+ resources :clusters, only: [:index, :new, :show, :update, :destroy] do
collection do
post :create_user
post :create_gcp
@@ -85,22 +96,9 @@ Rails.application.routes.draw do
post '/:application', to: 'clusters/applications#create', as: :install_applications
end
- get :status, format: :json
+ get :cluster_status, format: :json
end
end
-
- # UserCallouts
- resources :user_callouts, only: [:create]
-
- get 'ide' => 'ide#index'
- get 'ide/*vueroute' => 'ide#index', format: false
-
- draw :operations
- draw :instance_statistics
- end
-
- concern :clusterable do
- resources :clusters, only: [:index, :new, :show], controller: '/clusters'
end
draw :api