BigW Consortium Gitlab

Commit 48bf8a2e by Kamil Trzciński

Merge branch 'remove-ci-api-leftovers' into 'master'

Remove leftover API helper for removed CI API See merge request !13804
parents 6b803a06 8ecd9b57
......@@ -45,18 +45,4 @@ module ApiHelpers
oauth_access_token: oauth_access_token
)
end
def ci_api(path, user = nil)
"/ci/api/v1/#{path}" +
# Normalize query string
(path.index('?') ? '' : '?') +
# Append private_token if given a User object
if user.respond_to?(:private_token)
"&private_token=#{user.private_token}"
else
''
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