def get(self, icon_hash): apiResponse = ApiResponse() icon = icons.getImageData(icon_hash) if (icon): icon.update({"request": icon_hash}) apiResponse.setAll(False, "Image found", icon) else: apiResponse.setAll(True, "Image not found", {"request": icon_hash}) return apiResponse.getResponse()
def get(self): apiResponse = ApiResponse() apiResponse.setAll(False, "Everything's up and running", {}) return apiResponse.getResponse()
def get(self): apiResponse = ApiResponse() apiResponse.setAll(False, "Everything's up and running", {"nb_images": len(icons.getImagesData())}) return apiResponse.getResponse()