package functions import ( "fmt" "net/http" "github.com/gravitl/netmaker/logic/acls" ) // GetACL - fetch all ACLs associated with a network func GetACL(networkName string) *acls.ACLContainer { return request[acls.ACLContainer](http.MethodGet, fmt.Sprintf("/api/networks/%s/acls", networkName), nil) } // UpdateACL - update an ACL func UpdateACL(networkName string, payload *acls.ACLContainer) *acls.ACLContainer { return request[acls.ACLContainer](http.MethodPut, fmt.Sprintf("/api/networks/%s/acls", networkName), payload) }