mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-15 06:05:27 +08:00
16 lines
453 B
Go
16 lines
453 B
Go
package functions
|
|
|
|
import (
|
|
"fmt"
|
|
"net/http"
|
|
|
|
"github.com/gravitl/netmaker/logic/acls"
|
|
)
|
|
|
|
func GetACL(networkName string) *acls.ACLContainer {
|
|
return request[acls.ACLContainer](http.MethodGet, fmt.Sprintf("/api/networks/%s/acls", networkName), nil)
|
|
}
|
|
|
|
func UpdateACL(networkName string, payload *acls.ACLContainer) *acls.ACLContainer {
|
|
return request[acls.ACLContainer](http.MethodPut, fmt.Sprintf("/api/networks/%s/acls", networkName), payload)
|
|
}
|