Add Extractor capability

This commit is contained in:
Andreas Marschke 2024-01-15 22:05:14 +01:00
parent fe83cef1be
commit a4406b781e

View File

@ -100,6 +100,8 @@ 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} > 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("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) { h.Before("project > /api/project/{project_id}/templates > create template > 201 > application/json", func(t *trans.Transaction) {
addCapabilities([]string{"repository", "inventory", "environment", "view"}) addCapabilities([]string{"repository", "inventory", "environment", "view"})
}) })