blob: e66434e3c755b6e48a60e609976106093b1d8ae7 [file] [log] [blame]
Jamie Hannaford4721abc2014-09-16 16:29:04 +02001package apiversions
Jamie Hannaford1ce30f22014-09-16 11:23:34 +02002
3import (
4 "strings"
5
6 "github.com/rackspace/gophercloud"
7)
8
9func APIVersionsURL(c *gophercloud.ServiceClient) string {
10 return c.ServiceURL("")
11}
12
13func APIInfoURL(c *gophercloud.ServiceClient, version string) string {
14 return c.ServiceURL(strings.TrimRight(version, "/") + "/")
15}