π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Remove dead file URL handlers
Manav Rathi5d9713f32178
diff --git a/server/pkg/api/file.go b/server/pkg/api/file.goindex caae591b8d..61edaf5f45 100644--- a/server/pkg/api/file.go+++ b/server/pkg/api/file.go@@ -223,19 +223,6 @@ func (h *FileHandler) Get(c *gin.Context) {c.Redirect(http.StatusTemporaryRedirect, url)}-// GetV2 returns the URL of the file to client-func (h *FileHandler) GetV2(c *gin.Context) {- userID, fileID := getUserAndFileIDs(c)- url, err := h.Controller.GetFileURL(c, userID, fileID)- if err != nil {- handler.Error(c, stacktrace.Propagate(err, ""))- return- }- c.JSON(http.StatusOK, gin.H{- "url": url,- })-}-// GetThumbnail redirects the request to the file's thumbnail locationfunc (h *FileHandler) GetThumbnail(c *gin.Context) {userID, fileID := getUserAndFileIDs(c)@@ -248,19 +235,6 @@ func (h *FileHandler) GetThumbnail(c *gin.Context) {c.Redirect(http.StatusTemporaryRedirect, url)}-// GetThumbnailV2 returns the URL of the thumbnail to the client-func (h *FileHandler) GetThumbnailV2(c *gin.Context) {- userID, fileID := getUserAndFileIDs(c)- url, err := h.Controller.GetThumbnailURL(c, userID, fileID)- if err != nil {- handler.Error(c, stacktrace.Propagate(err, ""))- return- }- c.JSON(http.StatusOK, gin.H{- "url": url,- })-}-// Trash moves the given files to the trash binfunc (h *FileHandler) Trash(c *gin.Context) {var request ente.TrashRequest