disable /auth/github

This commit is contained in:
Konstantin Haase 2015-11-19 19:37:51 +01:00
parent 4f9cb29775
commit 8f5a34c7b6

View File

@ -78,6 +78,7 @@ class Travis::Api::App
# #
# * **github_token**: GitHub token for checking authorization (required) # * **github_token**: GitHub token for checking authorization (required)
post '/github' do post '/github' do
halt 503, "Endpoint temporarily disabled" unless settings.test?
unless params[:github_token] unless params[:github_token]
halt 422, { "error" => "Must pass 'github_token' parameter" } halt 422, { "error" => "Must pass 'github_token' parameter" }
end end