Skip to content

Commit

Permalink
Use new proxy v2 endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
wpjunior committed May 3, 2024
1 parent a2a5060 commit 9f7e8bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func doProxyAdminRequest(method, service, path string, body io.Reader) (*http.Re

func doProxyRequest(method, service, instance, path string, body io.Reader) (*http.Response, error) {
baseURL := viper.GetString("tsuru.target")
fullUrl := fmt.Sprintf("%s/services/%s/proxy/%s?callback=%s",
fullUrl := fmt.Sprintf("%s/1.20/services/%s/resources/%s%s",
strings.TrimSuffix(baseURL, "/"),
service,
instance,
Expand Down

0 comments on commit 9f7e8bc

Please sign in to comment.