From 4198321127608be2d15bce4653e943552f57fcb7 Mon Sep 17 00:00:00 2001 From: Brian Cain Date: Mon, 14 Sep 2015 22:01:47 -0700 Subject: [PATCH] Remove /v1 from auth class --- lib/vmfloaty/auth.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/vmfloaty/auth.rb b/lib/vmfloaty/auth.rb index 29ecaa4..3e7ebde 100644 --- a/lib/vmfloaty/auth.rb +++ b/lib/vmfloaty/auth.rb @@ -7,7 +7,7 @@ class Auth conn = Http.get_conn(verbose, url) resp = conn.post do |req| - req.url '/v1/token' + req.url '/token' req.headers['Content-Type'] = 'application/json' end @@ -23,7 +23,7 @@ class Auth conn = Http.get_conn(verbose, url) - response = conn.delete "/v1/token/#{token}" + response = conn.delete "/token/#{token}" res_body = JSON.parse(response) puts res_body end @@ -36,7 +36,7 @@ class Auth conn = Http.get_conn(verbose, url) - response = conn.get "/v1/token/#{token}" + response = conn.get "/token/#{token}" res_body = JSON.parse(response.body) puts res_body end