Commit a42f68a1 authored by Sri's avatar Sri

DeploymentsController with placeholder routes

parent 489a961e
# frozen_string_literal: true
class Projects::GoogleCloud::DeploymentsController < Projects::GoogleCloud::BaseController
before_action :validate_gcp_token!
def cloud_run
render json: "Placeholder"
end
def cloud_storage
render json: "Placeholder"
end
end
...@@ -319,6 +319,9 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do ...@@ -319,6 +319,9 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
namespace :google_cloud do namespace :google_cloud do
resources :service_accounts, only: [:index, :create] resources :service_accounts, only: [:index, :create]
get '/deployments/cloud_run', to: 'deployments#cloud_run'
get '/deployments/cloud_storage', to: 'deployments#cloud_storage'
end end
resources :environments, except: [:destroy] do resources :environments, except: [:destroy] do
......
...@@ -100,7 +100,7 @@ module Sidebars ...@@ -100,7 +100,7 @@ module Sidebars
::Sidebars::MenuItem.new( ::Sidebars::MenuItem.new(
title: _('Google Cloud'), title: _('Google Cloud'),
link: project_google_cloud_index_path(context.project), link: project_google_cloud_index_path(context.project),
active_routes: { controller: [:google_cloud, :service_accounts] }, active_routes: { controller: [:google_cloud, :service_accounts, :deployments] },
item_id: :google_cloud item_id: :google_cloud
) )
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment