fix(webhooks): routes should use the common schema used for other routes already

This commit is contained in:
kolaente 2023-10-13 18:10:59 +02:00
parent a0d8b28813
commit 8cc775ac4c
Signed by: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -581,10 +581,10 @@ func registerAPIRoutes(a *echo.Group) {
return &models.Webhook{}
},
}
a.GET("/project/:project/webhooks", webhookProvider.ReadAllWeb)
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("/projects/:project/webhooks", webhookProvider.ReadAllWeb)
a.PUT("/projects/:project/webhooks", webhookProvider.CreateWeb)
a.DELETE("/projects/:project/webhooks/:webhook", webhookProvider.DeleteWeb)
a.POST("/projects/:project/webhooks/:webhook", webhookProvider.UpdateWeb)
a.GET("/webhooks/events", apiv1.GetAvailableWebhookEvents)
}