1
0
Fork 0
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:
Chaim Lev-Ari 2023-05-23 10:05:55 +07:00 committed by GitHub
parent 8acea44ee8
commit ef00350922
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 13 deletions

View file

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