Skip to content

Commit

Permalink
Merge pull request #798 from factly/fix/796/list-webhooks-for-space
Browse files Browse the repository at this point in the history
update hukz url to display space specific webhooks
  • Loading branch information
shreeharsha-factly authored Oct 12, 2022
2 parents 9c7eee6 + 9b1c8a4 commit f46b952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/service/core/action/webhook/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func list(w http.ResponseWriter, r *http.Request) {
return
}

hukzURL := viper.GetString("hukz_url") + "/webhooks?tag=app:dega&tag=space:" + fmt.Sprint(sID) + "&limit=" + r.URL.Query().Get("limit") + "&page=" + r.URL.Query().Get("page")
hukzURL := viper.GetString("hukz_url") + "/webhooks/space/" + fmt.Sprint(sID) + "/?tag=app:dega&tag=space:" + fmt.Sprint(sID) + "&limit=" + r.URL.Query().Get("limit") + "&page=" + r.URL.Query().Get("page")

resp, err := requestx.Request("GET", hukzURL, nil, map[string]string{
"X-User": fmt.Sprint(uID),
Expand Down

0 comments on commit f46b952

Please sign in to comment.