mirror of
https://github.com/openziti/zrok.git
synced 2025-03-14 23:48:22 +01:00
these need to always be enabled anyway... (#34)
This commit is contained in:
parent
86b1e3cde7
commit
1130ff8006
@ -9,6 +9,10 @@ import (
|
||||
)
|
||||
|
||||
func CreateAccess(root env_core.Root, request *AccessRequest) (*Access, error) {
|
||||
if !root.IsEnabled() {
|
||||
return nil, errors.New("environment is not enabled; enable with 'zrok enable' first!")
|
||||
}
|
||||
|
||||
out := share.NewAccessParams()
|
||||
out.Body = &rest_model_zrok.AccessRequest{
|
||||
ShrToken: request.ShareToken,
|
||||
|
@ -10,6 +10,10 @@ import (
|
||||
)
|
||||
|
||||
func CreateShare(root env_core.Root, request *ShareRequest) (*Share, error) {
|
||||
if !root.IsEnabled() {
|
||||
return nil, errors.New("environment is not enabled; enable with 'zrok enable' first!")
|
||||
}
|
||||
|
||||
var err error
|
||||
var out *share.ShareParams
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user