Add support for webhook-based notifications #1181

Closed
rounakdatta wants to merge 4 commits from rounakdatta/api:webhook-notification into main
1 changed files with 1 additions and 0 deletions
Showing only changes of commit d1a301fb3c - Show all commits

View File

@ -26,6 +26,7 @@ type WebhookNotification struct {
// SendWebhook sends the notification to the configured endpoint
func SendWebhook(w *WebhookNotification) error {
_, err := DoPost(w.endpointUrl, w.body, w.headers)
Review

Please use X-Vikunja-Signature (capitalized)

Please use `X-Vikunja-Signature` (capitalized)
// TODO: Have response-code basis exponential retries
if err != nil {
return err
}