mcs set basepath on swagger yaml (#16)

This commit is contained in:
César Nieto
2020-04-03 13:17:31 -07:00
committed by GitHub
parent 35877973a9
commit 334b7ce671
62 changed files with 232 additions and 142 deletions

View File

@@ -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