migrate to postgres

This commit is contained in:
m
2026-07-12 23:49:25 +02:00
parent e7b418b004
commit e59fde6a48
15 changed files with 151 additions and 125 deletions
+2
View File
@@ -1,6 +1,7 @@
package handler
import (
"log"
"net/http"
"path"
"strconv"
@@ -51,6 +52,7 @@ func (h *FileHandler) Upload(c *gin.Context) {
func (h *FileHandler) List(c *gin.Context) {
files, err := h.files.List()
if err != nil {
log.Printf("ERROR List files: %v", err)
api.Error(c, http.StatusInternalServerError, "DB_ERROR", "Failed to list files")
return
}