Jamie Hannaford | 4721abc | 2014-09-16 16:29:04 +0200 | [diff] [blame] | 1 | package apiversions |
Jamie Hannaford | 1ce30f2 | 2014-09-16 11:23:34 +0200 | [diff] [blame] | 2 | |
3 | import ( | ||||
4 | "strings" | ||||
5 | |||||
6 | "github.com/rackspace/gophercloud" | ||||
7 | ) | ||||
8 | |||||
9 | func APIVersionsURL(c *gophercloud.ServiceClient) string { | ||||
10 | return c.ServiceURL("") | ||||
11 | } | ||||
12 | |||||
13 | func APIInfoURL(c *gophercloud.ServiceClient, version string) string { | ||||
14 | return c.ServiceURL(strings.TrimRight(version, "/") + "/") | ||||
15 | } |