mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-19 16:10:12 +01:00
🎨 Support exporting/importing S3 and WebDAV configurations https://github.com/siyuan-note/siyuan/issues/9566
This commit is contained in:
parent
79ab5962e0
commit
1455857410
1 changed files with 8 additions and 0 deletions
|
|
@ -118,6 +118,10 @@ func importSyncProviderWebDAV(c *gin.Context) {
|
||||||
ret.Msg = err.Error()
|
ret.Msg = err.Error()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ret.Data = map[string]interface{}{
|
||||||
|
"webdav": model.Conf.Sync.WebDAV,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func exportSyncProviderWebDAV(c *gin.Context) {
|
func exportSyncProviderWebDAV(c *gin.Context) {
|
||||||
|
|
@ -270,6 +274,10 @@ func importSyncProviderS3(c *gin.Context) {
|
||||||
ret.Msg = err.Error()
|
ret.Msg = err.Error()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ret.Data = map[string]interface{}{
|
||||||
|
"s3": model.Conf.Sync.S3,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func exportSyncProviderS3(c *gin.Context) {
|
func exportSyncProviderS3(c *gin.Context) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue