use of utils.GridFSSerializer in project play-cookbook by spinscale.
the class Application method getImages.
public static void getImages() {
List<GridFSDBFile> files = GridFsHelper.getFiles();
Map map = new HashMap();
map.put("items", files);
renderJSON(map, new GridFSSerializer());
}
Aggregations