Skip to content

Commit

Permalink
🎨 Support exporting/importing S3 and WebDAV configurations siyuan-not…
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 authored and appdev committed Nov 13, 2023
1 parent 4a9c04c commit cf8022a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions kernel/api/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit cf8022a

Please sign in to comment.