Add files via upload

added 2 API registrations :

/api/v2/sendalertmanager
/api/v2/sendgraylognotification
This commit is contained in:
Hugo 2024-12-24 08:45:50 +01:00 committed by GitHub
parent 95c14a5f2b
commit 8ea7456812
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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