From 8ea7456812d6f8b53d11c2aa26f6a2645b83322f Mon Sep 17 00:00:00 2001 From: Hugo <64264862+hvdort@users.noreply.github.com> Date: Tue, 24 Dec 2024 08:45:50 +0100 Subject: [PATCH] Add files via upload added 2 API registrations : /api/v2/sendalertmanager /api/v2/sendgraylognotification --- src/main.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main.go b/src/main.go index 37e95ff..70cf031 100644 --- a/src/main.go +++ b/src/main.go @@ -285,6 +285,14 @@ func main() { { sendV2.POST("", api.SendV2) } + sendalertmanagerV2 := v2.Group("/sendalertmanager") + { + sendalertmanagerV2.POST("", api.SendAlertManagerV2) + } + sendgraylognotificationV2 := v2.Group("/sendgraylognotification") + { + sendgraylognotificationV2.POST("", api.SendGraylogNotificationV2) + } } swaggerUrl := ginSwagger.URL("http://" + swaggerIp + ":" + string(port) + "/swagger/doc.json")