From 5db483883dd8627ca734dbdef81b4268a48df7c5 Mon Sep 17 00:00:00 2001 From: Chapuis Bertil Date: Wed, 16 Sep 2015 20:48:22 +0200 Subject: [PATCH] handle config properly --- backend/rest/rest.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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: