blob: c43f991d050759350447883b49369a6c3916d1a1 [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
Jamie Hannafordc65e1922014-09-22 13:20:58 +02009func apiVersionsURL(c *gophercloud.ServiceClient) string {
Jamie Hannaford1ce30f22014-09-16 11:23:34 +020010 return c.ServiceURL("")
11}
12
Jamie Hannafordc65e1922014-09-22 13:20:58 +020013func apiInfoURL(c *gophercloud.ServiceClient, version string) string {
Jamie Hannaford1ce30f22014-09-16 11:23:34 +020014 return c.ServiceURL(strings.TrimRight(version, "/") + "/")
15}