Fix hook string

This commit is contained in:
Andreas Marschke 2024-01-15 22:31:39 +01:00
parent a4406b781e
commit fc4925dc9b

View File

@ -86,6 +86,8 @@ func main() {
addCapabilities([]string{"repository", "inventory", "environment", "template", "webhook"})
})
h.Before("webhook > /api/project/{project_id}/webhook/{webhook_id}/extractors > Get Webhook Extractors > 200 > application/json", capabilityWrapper("webhookextractor"))
h.Before("project > /api/project/{project_id}/keys/{key_id} > Updates access key > 204 > application/json", capabilityWrapper("access_key"))
h.Before("project > /api/project/{project_id}/keys/{key_id} > Removes access key > 204 > application/json", capabilityWrapper("access_key"))
@ -100,8 +102,6 @@ func main() {
h.Before("project > /api/project/{project_id}/environment/{environment_id} > Update environment > 204 > application/json", capabilityWrapper("environment"))
h.Before("project > /api/project/{project_id}/environment/{environment_id} > Removes environment > 204 > application/json", capabilityWrapper("environment"))
h.Before("webhook > /api/project/{project_id}/webhook/{webhook_id}/extractors", capabilityWrapper("webhookextractor"))
h.Before("project > /api/project/{project_id}/templates > create template > 201 > application/json", func(t *trans.Transaction) {
addCapabilities([]string{"repository", "inventory", "environment", "view"})
})