disable /auth/github
This commit is contained in:
parent
4f9cb29775
commit
8f5a34c7b6
|
@ -78,6 +78,7 @@ class Travis::Api::App
|
|||
#
|
||||
# * **github_token**: GitHub token for checking authorization (required)
|
||||
post '/github' do
|
||||
halt 503, "Endpoint temporarily disabled" unless settings.test?
|
||||
unless params[:github_token]
|
||||
halt 422, { "error" => "Must pass 'github_token' parameter" }
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user