mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-06 17:29:15 +08:00
20 lines
455 B
Go
20 lines
455 B
Go
package functions
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/gravitl/netmaker/models/promodels"
|
|
)
|
|
|
|
func GetUsergroups() *promodels.UserGroups {
|
|
return request[promodels.UserGroups](http.MethodGet, "/api/usergroups", nil)
|
|
}
|
|
|
|
func CreateUsergroup(usergroupName string) {
|
|
request[any](http.MethodPost, "/api/usergroups/"+usergroupName, nil)
|
|
}
|
|
|
|
func DeleteUsergroup(usergroupName string) {
|
|
request[any](http.MethodDelete, "/api/usergroups/"+usergroupName, nil)
|
|
}
|