blob: 56f8260a25c251c2a37ccb4681f7acdb969c5618 [file] [log] [blame]
Jon Perrittfd53bba2014-10-03 00:41:22 -05001package apiversions
2
3import (
4 "strings"
5
6 "github.com/rackspace/gophercloud"
7)
8
9func getURL(c *gophercloud.ServiceClient, version string) string {
10 return c.ServiceURL(strings.TrimRight(version, "/") + "/")
11}
12
13func listURL(c *gophercloud.ServiceClient) string {
14 return c.ServiceURL("")
15}