Skip to content

Commit

Permalink
use data as default dataprovider prefix
Browse files Browse the repository at this point in the history
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
  • Loading branch information
butonic committed Apr 22, 2020
1 parent 4d072d0 commit 969c7ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/http/services/dataprovider/dataprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 969c7ac

Please sign in to comment.