blob: 58aa2b61f8bdf4edfa6bea1d043d404ea0f0c31b [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 Hannaford0a410042014-10-09 10:33:14 +020010 return c.Endpoint
Jamie Hannaford1ce30f22014-09-16 11:23:34 +020011}
12
Jamie Hannafordc65e1922014-09-22 13:20:58 +020013func apiInfoURL(c *gophercloud.ServiceClient, version string) string {
Jamie Hannaford0a410042014-10-09 10:33:14 +020014 return c.Endpoint + strings.TrimRight(version, "/") + "/"
Jamie Hannaford1ce30f22014-09-16 11:23:34 +020015}