feat: 完成了 file list 右键简单菜单

feat: 完成了 file 下载
todo: 桶右键菜单和删除桶
This commit is contained in:
loveuer
2024-10-13 22:19:41 +08:00
committed by zhaoyupeng
parent 777253063b
commit 660c5a7efb
14 changed files with 489 additions and 85 deletions

View File

@ -25,6 +25,7 @@ func Resolve(path string) (ndh.Handler, bool) {
func Init(ctx context.Context) error {
register("/runtime/dialog/open", handler.DialogOpen(ctx))
register("/runtime/dialog/save", handler.DialogSave(ctx))
register("/api/connection/test", handler.ConnectionTest)
register("/api/connection/create", handler.ConnectionCreate)
register("/api/connection/list", handler.ConnectionList)
@ -34,6 +35,9 @@ func Init(ctx context.Context) error {
register("/api/bucket/files", handler.BucketFiles)
register("/api/bucket/create", handler.BucketCreate)
register("/api/file/upload", handler.FileUpload)
register("/api/file/info", handler.FileInfo)
register("/api/file/get", handler.FileGet)
register("/api/file/download", handler.FileDownload)
return nil
}