blob: c9cf895b133bf4b07cc82b7798d2301e5ad8104b [file] [log] [blame]
package apiversions
import (
"strings"
"net/url"
"github.com/gophercloud/gophercloud"
)
func getURL(c *gophercloud.ServiceClient, version string) string {
return c.ServiceURL(strings.TrimRight(version, "/") + "/")
}
func listURL(c *gophercloud.ServiceClient) string {
u, _ := url.Parse(c.ServiceURL(""))
u.Path = "/"
return u.String()
}