Remove /v1 from auth class

This commit is contained in:
Brian Cain 2015-09-14 22:01:47 -07:00
parent 832169a066
commit 4198321127

View file

@ -7,7 +7,7 @@ class Auth
conn = Http.get_conn(verbose, url) conn = Http.get_conn(verbose, url)
resp = conn.post do |req| resp = conn.post do |req|
req.url '/v1/token' req.url '/token'
req.headers['Content-Type'] = 'application/json' req.headers['Content-Type'] = 'application/json'
end end
@ -23,7 +23,7 @@ class Auth
conn = Http.get_conn(verbose, url) conn = Http.get_conn(verbose, url)
response = conn.delete "/v1/token/#{token}" response = conn.delete "/token/#{token}"
res_body = JSON.parse(response) res_body = JSON.parse(response)
puts res_body puts res_body
end end
@ -36,7 +36,7 @@ class Auth
conn = Http.get_conn(verbose, url) conn = Http.get_conn(verbose, url)
response = conn.get "/v1/token/#{token}" response = conn.get "/token/#{token}"
res_body = JSON.parse(response.body) res_body = JSON.parse(response.body)
puts res_body puts res_body
end end