From 1455857410c9a9a478cd68fa568a3f9937f9383b Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Thu, 2 Nov 2023 20:26:47 +0800 Subject: [PATCH] :art: Support exporting/importing S3 and WebDAV configurations https://github.com/siyuan-note/siyuan/issues/9566 --- kernel/api/sync.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/kernel/api/sync.go b/kernel/api/sync.go index 022566b73..e41218060 100644 --- a/kernel/api/sync.go +++ b/kernel/api/sync.go @@ -118,6 +118,10 @@ func importSyncProviderWebDAV(c *gin.Context) { ret.Msg = err.Error() return } + + ret.Data = map[string]interface{}{ + "webdav": model.Conf.Sync.WebDAV, + } } func exportSyncProviderWebDAV(c *gin.Context) { @@ -270,6 +274,10 @@ func importSyncProviderS3(c *gin.Context) { ret.Msg = err.Error() return } + + ret.Data = map[string]interface{}{ + "s3": model.Conf.Sync.S3, + } } func exportSyncProviderS3(c *gin.Context) {