From 969c7ac6f9f2a385e32ce0d6db8656d2e267fedd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Wed, 22 Apr 2020 18:34:24 +0200 Subject: [PATCH] use data as default dataprovider prefix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jörn Friedrich Dreyer --- internal/http/services/dataprovider/dataprovider.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/http/services/dataprovider/dataprovider.go b/internal/http/services/dataprovider/dataprovider.go index b373133ae99..9b9e8991f94 100644 --- a/internal/http/services/dataprovider/dataprovider.go +++ b/internal/http/services/dataprovider/dataprovider.go @@ -53,6 +53,10 @@ func New(m map[string]interface{}) (global.Service, error) { return nil, err } + if conf.Prefix == "" { + conf.Prefix = "data" + } + fs, err := getFS(conf) if err != nil { return nil, err