refactor: standardize API response formats for list endpoints

- ListLibraries now returns {"data": []} instead of []
- ListUsers now returns {"data": []} instead of []
- ListMediaItems now returns {"data": []} instead of []

This provides consistent response structure across all list endpoints
and aligns with integration test expectations.
This commit is contained in:
2026-01-29 13:33:08 -05:00
parent 305deac4fd
commit ce0e448e58
+1 -1
View File
@@ -554,7 +554,7 @@ func (h *AuthHandler) ListUsers(c echo.Context) error {
})
}
return c.JSON(http.StatusOK, userList)
return c.JSON(http.StatusOK, map[string]interface{}{"data": userList})
}
type AddEbookFolderRequest struct {