BigW Consortium Gitlab

Handle html format in addition to json

parent 91426093
...@@ -27,6 +27,8 @@ class Projects::Clusters::GcpController < Projects::ApplicationController ...@@ -27,6 +27,8 @@ class Projects::Clusters::GcpController < Projects::ApplicationController
render json: { billing: redis.get(CheckGcpProjectBillingWorker.redis_shared_state_key_for(token_in_session)) } render json: { billing: redis.get(CheckGcpProjectBillingWorker.redis_shared_state_key_for(token_in_session)) }
end end
end end
format.html { render :check }
end end
end end
......
...@@ -189,9 +189,9 @@ constraints(ProjectUrlConstrainer.new) do ...@@ -189,9 +189,9 @@ constraints(ProjectUrlConstrainer.new) do
get '/user/new', to: 'clusters/user#new' get '/user/new', to: 'clusters/user#new'
post '/user', to: 'clusters/user#create' post '/user', to: 'clusters/user#create'
get '/gcp/check', to: 'clusters/gcp#check'
get '/gcp/new', to: 'clusters/gcp#new' get '/gcp/new', to: 'clusters/gcp#new'
get '/gcp/login', to: 'clusters/gcp#login' get '/gcp/login', to: 'clusters/gcp#login'
get '/gcp/check', to: 'clusters/gcp#check'
post '/gcp', to: 'clusters/gcp#create' post '/gcp', to: 'clusters/gcp#create'
end end
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