Commit 64e911a0 authored by Matija Čupić's avatar Matija Čupić

Handle html format in addition to json

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