mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
docs(webhooks): document required endpoint and webhook type [EE-5286] (#8973)
This commit is contained in:
parent
8acea44ee8
commit
ef00350922
3 changed files with 16 additions and 13 deletions
|
@ -44,11 +44,12 @@ func (handler *Handler) webhookList(w http.ResponseWriter, r *http.Request) *htt
|
|||
}
|
||||
|
||||
webhooks, err := handler.DataStore.Webhook().Webhooks()
|
||||
webhooks = filterWebhooks(webhooks, &filters)
|
||||
if err != nil {
|
||||
return httperror.InternalServerError("Unable to retrieve webhooks from the database", err)
|
||||
}
|
||||
|
||||
webhooks = filterWebhooks(webhooks, &filters)
|
||||
|
||||
return response.JSON(w, webhooks)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue