From fc42f93d26fe6113e0e4ca20c378e84da7fd5515 Mon Sep 17 00:00:00 2001 From: Ingo Oppermann Date: Wed, 24 Aug 2022 11:38:27 +0300 Subject: [PATCH] Fix diskfs and memfs names in order to keep API intact --- app/api/api.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/api/api.go b/app/api/api.go index 7f3c7573..13c8b47c 100644 --- a/app/api/api.go +++ b/app/api/api.go @@ -490,8 +490,8 @@ func (a *api) start() error { a.replacer.RegisterTemplate("diskfs", a.diskfs.Base()) a.replacer.RegisterTemplate("memfs", a.memfs.Base()) - a.replacer.RegisterTemplate("fs:diskfs", a.diskfs.Base()) - a.replacer.RegisterTemplate("fs:memfs", a.memfs.Base()) + a.replacer.RegisterTemplate("fs:disk", a.diskfs.Base()) + a.replacer.RegisterTemplate("fs:mem", a.memfs.Base()) for name, s3 := range a.s3fs { a.replacer.RegisterTemplate("fs:"+name, s3.Base()) @@ -843,7 +843,7 @@ func (a *api) start() error { filesystems := []httpfs.FS{ { - Name: "diskfs", + Name: "disk", Mountpoint: "", AllowWrite: false, EnableAuth: false, @@ -856,7 +856,7 @@ func (a *api) start() error { Cache: a.cache, }, { - Name: "memfs", + Name: "mem", Mountpoint: "/memfs", AllowWrite: true, EnableAuth: cfg.Storage.Memory.Auth.Enable,