From 2cef055ff29b9f99e0b32897d878aabd5cae0659 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sat, 11 Jul 2020 13:28:17 -0700 Subject: [PATCH] use files not paths --- router/router_server_files.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/router/router_server_files.go b/router/router_server_files.go index 3729e97..0e910cd 100644 --- a/router/router_server_files.go +++ b/router/router_server_files.go @@ -195,7 +195,7 @@ func postServerCompressFiles(c *gin.Context) { var data struct { RootPath string `json:"root"` - Paths []string `json:"paths"` + Files []string `json:"files"` } if err := c.BindJSON(&data); err != nil { @@ -209,7 +209,7 @@ func postServerCompressFiles(c *gin.Context) { return } - f, err := s.Filesystem.CompressFiles(data.RootPath, data.Paths) + f, err := s.Filesystem.CompressFiles(data.RootPath, data.Files) if err != nil { TrackedServerError(err, s).AbortWithServerError(c) return