fix(webhook): update webhook endpoint path to include 'post'
Build / ubuntu-latest (push) Failing after 0s
Build / windows-latest (push) Failing after 1h7m41s

This commit is contained in:
NanamiAdmin committed 2026-11-01 20:45:50 +08:00
1 parent 03b67dc3c0
commit a9ff252f45
4 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -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