1
0

feat(webhooks): add route to get all available webhook events

This commit is contained in:
kolaente
2023-09-14 12:21:20 +02:00
parent eb1b9247ad
commit 96ccf6b923
3 changed files with 40 additions and 0 deletions

View File

@ -585,6 +585,7 @@ func registerAPIRoutes(a *echo.Group) {
a.PUT("/project/:project/webhooks", webhookProvider.CreateWeb)
a.DELETE("/project/:project/webhooks/:webhook", webhookProvider.DeleteWeb)
a.POST("/project/:project/webhooks/:webhook", webhookProvider.UpdateWeb)
a.GET("/webhooks/events", apiv1.GetAvailableWebhookEvents)
}
func registerMigrations(m *echo.Group) {