mcs set basepath on swagger yaml (#16)
This commit is contained in:
@@ -52,9 +52,12 @@ func (o *SessionCheckURL) SetBasePath(bp string) {
|
||||
func (o *SessionCheckURL) Build() (*url.URL, error) {
|
||||
var _result url.URL
|
||||
|
||||
var _path = "/api/v1/session"
|
||||
var _path = "/session"
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/api/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
return &_result, nil
|
||||
|
||||
Reference in New Issue
Block a user