forked from mystiq/dex
14 lines
264 B
Go
14 lines
264 B
Go
package adminschema
|
|
|
|
import (
|
|
"net/http"
|
|
"strings"
|
|
)
|
|
|
|
func NewWithBasePath(client *http.Client, basePath string) (*Service, error) {
|
|
s, err := New(client)
|
|
if err == nil {
|
|
s.BasePath = strings.Replace(s.BasePath, "$ENDPOINT", basePath, 1)
|
|
}
|
|
return s, nil
|
|
}
|