Changeset 0.28.2.3 (#186)

This commit is contained in:
2026-03-13 23:47:06 +00:00
parent 8c4cb9bbeb
commit b2c03be001
4 changed files with 597 additions and 37 deletions

View File

@@ -618,6 +618,9 @@ func (h *FileHandler) ListByProject(c *gin.Context) {
c.JSON(http.StatusInternalServerError, gin.H{"error": "failed to list files"})
return
}
if files == nil {
files = []models.File{}
}
c.JSON(http.StatusOK, gin.H{"files": files, "count": len(files)})
}