refresh signed files

This commit is contained in:
m
2026-07-11 23:09:35 +02:00
parent f7cf2a2bef
commit b6e38e930c
5 changed files with 72 additions and 31 deletions
+4 -7
View File
@@ -1,7 +1,6 @@
package handlers
import (
"fmt"
"net/http"
"os"
"path"
@@ -72,7 +71,7 @@ func ListFiles(c *gin.Context) {
func ListFile(c *gin.Context) {
id := c.Query("id")
id := c.Param("id")
dirs, err := os.ReadDir("./uploads/")
@@ -175,12 +174,10 @@ func UploadFile(c *gin.Context) {
c.SaveUploadedFile(file, dst)
c.String(http.StatusOK, fmt.Sprintf("'%s' uploaded!", file.Filename))
c.JSON(http.StatusNotImplemented, gin.H{
c.JSON(http.StatusOK, gin.H{
"error": gin.H{
"code": "NOT_IMPLEMENTED",
"message": "Upload not yet implemented",
"code": "SUCCESS",
"message": "Uploaded",
},
})
}