mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 20:35:24 +01:00
Add Extractor capability
This commit is contained in:
parent
fe83cef1be
commit
a4406b781e
@ -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"})
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user