fix(webhook): update webhook endpoint path to include 'post'
This commit is contained in:
1 parent
03b67dc3c0
commit
a9ff252f45
4 files changed
+5
-5
No files matched your search
+2
-2
@@ -24,12 +24,12 @@ type webhookRequest struct {
|
||||
Content string `json:"content"`
|
||||
}
|
||||
|
||||
// WebhookHandler handles POST /api/webhook/{name}, the incoming webhook API
|
||||
// WebhookHandler handles POST /api/webhook/post/{name}, the incoming webhook API
|
||||
// served on its own listener (see webhook in config.json). The path segment
|
||||
// selects the endpoint, which carries the token to present and the notification
|
||||
// channels to deliver to:
|
||||
//
|
||||
// POST /api/webhook/example
|
||||
// POST /api/webhook/post/example
|
||||
// {"token": "...", "subject": "...", "content": "..."}
|
||||
//
|
||||
// The alert is rendered per channel and sent through every channel the endpoint
|
||||
|
||||
Reference in new issue
Block a user