Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
added 2 API registrations :

/api/v2/sendalertmanager
/api/v2/sendgraylognotification
  • Loading branch information
hvdort authored Dec 24, 2024
1 parent 95c14a5 commit 8ea7456
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 8ea7456

Please sign in to comment.