mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 12:30:41 +01:00
Fix hook string
This commit is contained in:
parent
a4406b781e
commit
fc4925dc9b
@ -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"})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user