summaryrefslogtreecommitdiff
path: root/config/routes
diff options
context:
space:
mode:
Diffstat (limited to 'config/routes')
-rw-r--r--config/routes/google_api.rb5
-rw-r--r--config/routes/project.rb7
2 files changed, 12 insertions, 0 deletions
diff --git a/config/routes/google_api.rb b/config/routes/google_api.rb
new file mode 100644
index 00000000000..57e15d0d39c
--- /dev/null
+++ b/config/routes/google_api.rb
@@ -0,0 +1,5 @@
+namespace :google_api do
+ resource :authorizations, only: [], controller: :authorizations do
+ match :callback, via: [:get, :post]
+ end
+end
diff --git a/config/routes/project.rb b/config/routes/project.rb
index b36d13888cd..5a43e2274a6 100644
--- a/config/routes/project.rb
+++ b/config/routes/project.rb
@@ -183,6 +183,13 @@ constraints(ProjectUrlConstrainer.new) do
end
end
+ resources :clusters, except: [:show, :destroy] do
+ collection do
+ get :gcp_projects # TODO: This doesn't belong here. Grape or under user. Hint. Serilizer
+ get :gke_zones
+ end
+ end
+
resources :environments, except: [:destroy] do
member do
post :stop