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 untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 4 additions and 4 deletions

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)
}