예제 #1
0
    def get(self):
        data = {
            "imagePath":
            get_img_root_url(self.request) +
            model.get_random_image().key().name()
        }

        respond_json(self.response, self.request, data)
예제 #2
0
 def get(self):
     image = model.get_random_image()
     respond_image(image, self.response, True)