diff --git a/backend/rest/rest.go b/backend/rest/rest.go index 3b6ac3776..6ece9ed49 100644 --- a/backend/rest/rest.go +++ b/backend/rest/rest.go @@ -23,10 +23,11 @@ func restPath(url *url.URL, t backend.Type, name string) string { if !strings.HasSuffix(ept, "/") { ept += "/" } + if t == backend.Config { + return ept + backend.Paths.Config + } var dir string switch t { - case backend.Config: - dir = backend.Paths.Config case backend.Data: dir = backend.Paths.Data case backend.Snapshot: