mirror of
https://github.com/openziti/zrok.git
synced 2025-08-14 02:05:39 +02:00
these need to always be enabled anyway... (#34)
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user