Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

fix: Fixed wrong paths for apiutils #469

Merged
merged 6 commits into from
Jun 1, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed wrong paths for apiutils
Signed-off-by: warber <[email protected]>
  • Loading branch information
warber committed Jun 1, 2022
commit 8810b3c9ede340cce4d1b52ddff62d0834842bdd
2 changes: 1 addition & 1 deletion pkg/api/utils/apiUtils.go
Original file line number Diff line number Diff line change
@@ -162,7 +162,7 @@ func (a *APIHandler) GetMetadata() (*models.Metadata, *models.Error) {
baseURL += "/api"
}

req, err := http.NewRequest("GET", a.Scheme+"://"+strings.TrimSuffix(baseURL, "/"+shipyardControllerBaseURL)+v1MetadataPath, nil)
req, err := http.NewRequest("GET", a.Scheme+"://"+baseURL+v1MetadataPath, nil)
if err != nil {
return nil, buildErrorResponse(err.Error())
}