blob: 0fa743776d3cd28e92322e6ee5bfa71e84a8b07c [file] [log] [blame]
Jamie Hannaford4721abc2014-09-16 16:29:04 +02001package apiversions
Jamie Hannaford1ce30f22014-09-16 11:23:34 +02002
3import (
4 "strings"
5
Jon Perritt27249f42016-02-18 10:35:59 -06006 "github.com/gophercloud/gophercloud"
Jamie Hannaford1ce30f22014-09-16 11:23:34 +02007)
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}